mirror of
https://github.com/wolfpld/tracy
synced 2025-05-08 07:53:52 +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 );
|
onDemand.frames = m_frameCount.load( std::memory_order_relaxed );
|
||||||
|
|
||||||
m_sock->Send( &onDemand, sizeof( onDemand ) );
|
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
|
#endif
|
||||||
|
|
||||||
int keepAlive = 0;
|
int keepAlive = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user