From e04bd05606e7660296521fbc7f621665ff4572f3 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 16 Oct 2017 21:21:42 +0200 Subject: [PATCH] Always use ShouldExit() to determine if worker should exit. --- client/TracyProfiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 86d110d3..c6654595 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -132,7 +132,7 @@ void Profiler::Worker() { for(;;) { - if( m_shutdown.load( std::memory_order_relaxed ) ) return; + if( ShouldExit() ) return; m_sock = listen.Accept(); if( m_sock ) break; } @@ -163,7 +163,7 @@ void Profiler::Worker() for(;;) { - if( m_shutdown.load( std::memory_order_relaxed ) ) return; + if( ShouldExit() ) return; QueueItem item[BulkSize]; const auto sz = s_queue.try_dequeue_bulk( token, item, BulkSize );