#include <thread.h>
Inheritance diagram for Conditional::
Public Methods | |
Conditional () | |
Create an instance of a conditional. More... | |
~Conditional () | |
Destroy the conditional. More... | |
void | Signal (bool broadcast) |
Signal a conditional object and a waiting threads. More... | |
void | Wait (timeout_t timer=0) |
Wait to be signaled from another thread. More... | |
Protected Attributes | |
pthread_cond_t | _cond |
Conditional variables may wait for and receive signals to notify when to resume or perform operations. Multiple waiting threads may be woken with a broadcast signal.
|
Create an instance of a conditional.
|
|
Destroy the conditional.
|
|
Signal a conditional object and a waiting threads.
|
|
Wait to be signaled from another thread.
|
|
|