From d87508901fadc72fecd644155219e65c779839ef Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 11 Jul 2018 12:28:40 +0200 Subject: [PATCH] Send deferred data. --- client/TracyProfiler.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index ac3994cf..18856b96 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -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( &item.hdr.idx ); + AppendData( &item, QueueDataSize[idx] ); + } + m_deferredLock.unlock(); #endif int keepAlive = 0;