Reliable wait condition to signal readiness. More...
Public Member Functions | |
void | Done () |
Sets status to done and wakes up another process. | |
void | Done () |
Sets status to done and wakes up another process. | |
void | Wait () |
Atomically waits for completion and then resets the done flag to false. | |
void | Wait () |
Atomically waits for completion and then resets the done flag to false. |
Reliable wait condition to signal readiness.
This has semantics almost identical to the regular wait conditions, except it will wake up only exactly one process, and that Wait() will terminate immediately if Done() was previously called.
This may be reused multiple times -- every time Wait() is called, the done flag is reset to false afterwards.
Definition at line 313 of file thread.h.
void DoneCondition::Done | ( | ) | [inline] |
Sets status to done and wakes up another process.
Definition at line 337 of file thread.h.
References Mutex::Lock(), and Mutex::Unlock().
void DoneCondition::Done | ( | ) | [inline] |
Sets status to done and wakes up another process.
Definition at line 337 of file thread.h.
References Mutex::Lock(), and Mutex::Unlock().
void DoneCondition::Wait | ( | ) | [inline] |
Atomically waits for completion and then resets the done flag to false.
Definition at line 325 of file thread.h.
References Mutex::Lock(), and Mutex::Unlock().
void DoneCondition::Wait | ( | ) | [inline] |
Atomically waits for completion and then resets the done flag to false.
Definition at line 325 of file thread.h.
References Mutex::Lock(), and Mutex::Unlock().