mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Revert "Fix shutdown hang (resolves #160)"
This reverts commit 315d25a787
.
This commit is contained in:
parent
315d25a787
commit
168e511de5
@ -706,10 +706,10 @@ static void SetupSampling( int64_t& samplingPeriod )
|
||||
for( int i=0; i<s_numCpus; i++ ) s_ring[i].Enable();
|
||||
for(;;)
|
||||
{
|
||||
if( !traceActive.load( std::memory_order_relaxed ) ) break;
|
||||
bool hadData = false;
|
||||
for( int i=0; i<s_numCpus; i++ )
|
||||
{
|
||||
if( !traceActive.load( std::memory_order_relaxed ) ) break;
|
||||
if( !s_ring[i].HasData() ) continue;
|
||||
hadData = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user