Condition variable for thread synchronization. More...
#include <cmtkConditionVariable.h>
Public Member Functions | |
ConditionVariable () | |
Constructor. | |
~ConditionVariable () | |
Destructor. | |
void | Wait () |
Wait for condition variable. | |
void | Signal () |
Signal condition variable. | |
void | Broadcast () |
Broadcast signal condition variable. |
Condition variable for thread synchronization.
Definition at line 51 of file cmtkConditionVariable.h.
cmtk::ConditionVariable::ConditionVariable | ( | ) | [inline] |
cmtk::ConditionVariable::~ConditionVariable | ( | ) | [inline] |
Destructor.
Definition at line 65 of file cmtkConditionVariable.h.
void cmtk::ConditionVariable::Broadcast | ( | ) | [inline] |
Broadcast signal condition variable.
This will unblock all waiting threads.
Definition at line 93 of file cmtkConditionVariable.h.
void cmtk::ConditionVariable::Signal | ( | ) | [inline] |
Signal condition variable.
This will unblock at least one waiting thread.
Definition at line 83 of file cmtkConditionVariable.h.
void cmtk::ConditionVariable::Wait | ( | ) | [inline] |
Wait for condition variable.
Definition at line 73 of file cmtkConditionVariable.h.