Move server query acknowledgement to a separate function.

This commit is contained in:
Bartosz Taudul 2021-02-03 22:32:31 +01:00
parent f97223e394
commit 3376620919

View File

@ -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__