DUECA/DUSIME
|
Wait and resume object. More...
#include <Condition.hxx>
Public Member Functions | |
Condition (const char *name) | |
Constructor. | |
~Condition () | |
Destructor. | |
void | enterTest () |
Enter the condition test. | |
void | wait () |
Start waiting, if it appears that the test was false, call this after an enterTest. | |
void | leaveTest () |
Leave the condition test, after enterTest or wait. | |
void | signal () |
Signal the condition to any waiters. | |
Wait and resume object.
void dueca::Condition::enterTest | ( | ) |
Enter the condition test.
Call this before checking to see whether waiting is needed, or call it when changing the conditions, and signalling a resume.
void dueca::Condition::wait | ( | ) |
Start waiting, if it appears that the test was false, call this after an enterTest.