mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Move server query acknowledgement to a separate function.
This commit is contained in:
parent
f97223e394
commit
3376620919
@ -569,6 +569,12 @@ static uint64_t GetPid()
|
||||
#endif
|
||||
}
|
||||
|
||||
static void AckServerQuery()
|
||||
{
|
||||
TracyLfqPrepare( QueueType::AckServerQueryNoop );
|
||||
TracyLfqCommit;
|
||||
}
|
||||
|
||||
static BroadcastMessage& GetBroadcastMessage( const char* procname, size_t pnsz, int& len, int port )
|
||||
{
|
||||
static BroadcastMessage msg;
|
||||
@ -3009,8 +3015,7 @@ void Profiler::HandleParameter( uint64_t payload )
|
||||
const auto idx = uint32_t( payload >> 32 );
|
||||
const auto val = int32_t( payload & 0xFFFFFFFF );
|
||||
m_paramCallback( idx, val );
|
||||
TracyLfqPrepare( QueueType::AckServerQueryNoop );
|
||||
TracyLfqCommit;
|
||||
AckServerQuery();
|
||||
}
|
||||
|
||||
#ifdef __ANDROID__
|
||||
|
Loading…
Reference in New Issue
Block a user