mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 09:14:36 +00:00
Add macro for handling serial dequeue thread context checks.
This commit is contained in:
parent
2d5d4293a9
commit
2eeade89ba
@ -2226,6 +2226,16 @@ Profiler::DequeueStatus Profiler::DequeueContextSwitches( tracy::moodycamel::Con
|
|||||||
return ( timeStop == -1 || sz > 0 ) ? DequeueStatus::DataDequeued : DequeueStatus::QueueEmpty;
|
return ( timeStop == -1 || sz > 0 ) ? DequeueStatus::DataDequeued : DequeueStatus::QueueEmpty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define ThreadCtxCheckSerial( _name ) \
|
||||||
|
uint32_t thread = MemRead<uint32_t>( &item->_name.thread ); \
|
||||||
|
switch( ThreadCtxCheck( thread ) ) \
|
||||||
|
{ \
|
||||||
|
case ThreadCtxStatus::Same: break; \
|
||||||
|
case ThreadCtxStatus::Changed: assert( m_refTimeThread == 0 ); refThread = 0; break; \
|
||||||
|
case ThreadCtxStatus::ConnectionLost: return DequeueStatus::ConnectionLost; \
|
||||||
|
default: assert( false ); break; \
|
||||||
|
}
|
||||||
|
|
||||||
Profiler::DequeueStatus Profiler::DequeueSerial()
|
Profiler::DequeueStatus Profiler::DequeueSerial()
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user