Expose worker data state (static/dynamic).

This commit is contained in:
Bartosz Taudul 2018-03-24 14:43:57 +01:00
parent 225423bd21
commit d8ac7dee83

View File

@ -143,6 +143,7 @@ public:
bool HasData() const { return m_hasData.load( std::memory_order_acquire ); } bool HasData() const { return m_hasData.load( std::memory_order_acquire ); }
bool IsConnected() const { return m_connected.load( std::memory_order_relaxed ); } 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 Shutdown() { m_shutdown.store( true, std::memory_order_relaxed ); }
void Write( FileWrite& f ); void Write( FileWrite& f );