14 ThreadedTest::ThreadedTest()
15 : thread_(), condvar_(), ready_(false), stopping_(false),
bool stopped_
Flag indicating that the thread is stopped.
void waitReady()
Wait for the thread to be ready.
void wait(Mutex &mutex)
Wait on the condition variable.
void doWait(bool &flag)
Wait for a selected flag to be set.
bool stopping_
Flag indicating that the thread is stopping.
void waitStopping()
Wait for the thread to be stopping.
void doSignal(bool &flag)
Sets selected flag to true and signals condition variable.
void waitStopped()
Wait for the thread to stop.
void signalReady()
Signal that thread is ready.
This holds a lock on a Mutex.
Wrappers for thread related functionality.
util::thread::Mutex mutex_
Mutex used to synchronize threads.
bool ready_
Flag indicating that the thread is ready.
Defines the logger used by the top-level component of kea-dhcp-ddns.
util::thread::CondVar condvar_
Condtional variable for thread waits.
void signalStopped()
Signal that thread is stopped.
void signal()
Unblock a thread waiting for the condition variable.
void signalStopping()
Signal that thread is stopping.
bool isStopping()
Checks if the thread is stopping.