From d8ac7dee83114549bc520603d83a474254f97546 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 24 Mar 2018 14:43:57 +0100 Subject: [PATCH] Expose worker data state (static/dynamic). --- server/TracyWorker.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/server/TracyWorker.hpp b/server/TracyWorker.hpp index 53f632bb..a5067483 100644 --- a/server/TracyWorker.hpp +++ b/server/TracyWorker.hpp @@ -143,6 +143,7 @@ public: bool HasData() const { return m_hasData.load( std::memory_order_acquire ); } bool IsConnected() const { return m_connected.load( std::memory_order_relaxed ); } + bool IsDataStatic() const { return !m_thread.joinable(); } void Shutdown() { m_shutdown.store( true, std::memory_order_relaxed ); } void Write( FileWrite& f );