mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Send deferred data.
This commit is contained in:
parent
ad0a75da7d
commit
d87508901f
@ -308,6 +308,14 @@ void Profiler::Worker()
|
||||
onDemand.frames = m_frameCount.load( std::memory_order_relaxed );
|
||||
|
||||
m_sock->Send( &onDemand, sizeof( onDemand ) );
|
||||
|
||||
m_deferredLock.lock();
|
||||
for( auto& item : m_deferredQueue )
|
||||
{
|
||||
const auto idx = MemRead<uint8_t>( &item.hdr.idx );
|
||||
AppendData( &item, QueueDataSize[idx] );
|
||||
}
|
||||
m_deferredLock.unlock();
|
||||
#endif
|
||||
|
||||
int keepAlive = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user