1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 12:23:53 +00:00

Revert "Fix shutdown hang (resolves #160)"

This reverts commit 315d25a787d88d6a7dbc8243f8150696476c9ae7.
This commit is contained in:
joshuakr 2021-01-21 17:21:43 -08:00
parent 315d25a787
commit 168e511de5

View File

@ -706,10 +706,10 @@ static void SetupSampling( int64_t& samplingPeriod )
for( int i=0; i<s_numCpus; i++ ) s_ring[i].Enable(); for( int i=0; i<s_numCpus; i++ ) s_ring[i].Enable();
for(;;) for(;;)
{ {
if( !traceActive.load( std::memory_order_relaxed ) ) break;
bool hadData = false; bool hadData = false;
for( int i=0; i<s_numCpus; i++ ) for( int i=0; i<s_numCpus; i++ )
{ {
if( !traceActive.load( std::memory_order_relaxed ) ) break;
if( !s_ring[i].HasData() ) continue; if( !s_ring[i].HasData() ) continue;
hadData = true; hadData = true;