|
ContRap-Core
|
Class WaitCondition implements a wait condition variable. More...
#include <thread.h>
Public Member Functions | |
| WaitCondition () | |
| Initialize the condition variable. | |
| ~WaitCondition () | |
| Cleanup memory. | |
| void | wait (bool value) |
| Wait for the condition to occur. | |
| void | broadcast (bool value) |
| Broadcast to everybody, who waits for this condition, that the condition is satisfied. | |
Class WaitCondition implements a wait condition variable.
| crp::WaitCondition::WaitCondition | ( | ) |
Initialize the condition variable.
| crp::WaitCondition::~WaitCondition | ( | ) |
Cleanup memory.
| void crp::WaitCondition::broadcast | ( | bool | value | ) |
Broadcast to everybody, who waits for this condition, that the condition is satisfied.
| value | Value which the variable takes |
| void crp::WaitCondition::wait | ( | bool | value | ) |
Wait for the condition to occur.
| value | Value which should be reached |
1.7.3