DUECA/DUSIME
|
Wait and resume object. More...
Public Member Functions | |
Condition (const char *name) | |
Constructor. More... | |
~Condition () | |
Destructor. More... | |
void | enterTest () |
Enter the condition test. More... | |
void | wait () |
Start waiting, if it appears that the test was false, call this after an enterTest. More... | |
void | leaveTest () |
Leave the condition test, after enterTest or wait. More... | |
void | signal () |
Signal the condition to any waiters. More... | |
Wait and resume object.
dueca::Condition::Condition | ( | const char * | name | ) |
Constructor.
name | Identifying name. |
dueca::Condition::~Condition | ( | ) |
Destructor.
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.
void dueca::Condition::leaveTest | ( | ) |
Leave the condition test, after enterTest or wait.
void dueca::Condition::signal | ( | ) |
Signal the condition to any waiters.