Defines session-specific internal state structures for connected clients.
void stop()
Requests the active thread (if any) to stop by setting the stop flag.
std::shared_ptr< std::atomic< bool > > m_stopRequested
Shared stop token used to cancel the thread's task loop.
std::atomic< bool > m_running
Internal flag indicating whether the thread is running.
std::mutex m_threadMutex
Synchronization primitive to guard start/stop operations.
bool running() const
Returns whether a frame listening thread is currently active.