ObjFW
|
A class implementing a condition variable for thread synchronization. More...
#include <OFThread.h>
Public Member Functions | |
void | wait () |
void | signal () |
void | broadcast () |
Static Public Member Functions | |
id | condition () |
Protected Attributes | |
of_condition_t | condition |
BOOL | cond_initialized |
A class implementing a condition variable for thread synchronization.
void OFCondition::broadcast | ( | ) | [virtual] |
Signals all threads to continue.
id OFCondition::condition | ( | ) | [static, virtual] |
void OFCondition::signal | ( | ) | [virtual] |
Signals the next waiting thread to continue.
void OFCondition::wait | ( | ) | [virtual] |
Blocks the current thread until another thread calls -[signal] or -[broadcast].