Send deferred data.

This commit is contained in:
Bartosz Taudul 2018-07-11 12:28:40 +02:00
parent ad0a75da7d
commit d87508901f

View File

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