mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Send thread wakeups when handling disconnect request.
This commit is contained in:
parent
c8e5489e99
commit
25b3cdc1ee
@ -1822,6 +1822,16 @@ Profiler::DequeueStatus Profiler::DequeueContextSwitches( tracy::moodycamel::Con
|
|||||||
}
|
}
|
||||||
if( !AppendData( item, QueueDataSize[(int)QueueType::ContextSwitch] ) ) return DequeueStatus::ConnectionLost;
|
if( !AppendData( item, QueueDataSize[(int)QueueType::ContextSwitch] ) ) return DequeueStatus::ConnectionLost;
|
||||||
}
|
}
|
||||||
|
else if( idx == (uint8_t)QueueType::ThreadWakeup )
|
||||||
|
{
|
||||||
|
const auto csTime = MemRead<int64_t>( &item->threadWakeup.time );
|
||||||
|
if( csTime > timeStop )
|
||||||
|
{
|
||||||
|
timeStop = -1;
|
||||||
|
return DequeueStatus::Success;
|
||||||
|
}
|
||||||
|
if( !AppendData( item, QueueDataSize[(int)QueueType::ThreadWakeup] ) ) return DequeueStatus::ConnectionLost;
|
||||||
|
}
|
||||||
item++;
|
item++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user