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