|
|
void | broadcast (void) |
| | Signal the conditional to release all waiting threads.
|
| |
|
| Conditional () |
| | Initialize and construct conditional.
|
| |
|
void | signal (void) |
| | Signal the conditional to release one waiting thread.
|
| |
| bool | wait (timeout_t timeout) |
| | Conditional wait for signal on millisecond timeout. More...
|
| |
| bool | wait (struct timespec *timeout) |
| | Conditional wait for signal on timespec timeout. More...
|
| |
|
void | wait (void) |
| | Wait (block) until signalled.
|
| |
|
| ~Conditional () |
| | Destroy conditional, release any blocked threads.
|
| |
|
| ConditionMutex () |
| | Initialize and construct conditional.
|
| |
|
void | lock (void) |
| | Lock the conditional's supporting mutex.
|
| |
|
void | unlock (void) |
| | Unlock the conditional's supporting mutex.
|
| |
|
| ~ConditionMutex () |
| | Destroy conditional, release any blocked threads.
|
| |
The conditional is a common base for other thread synchronizing classes.
Many of the complex sychronization objects, including barriers, semaphores, and various forms of read/write locks are all built from the conditional. This assures that the minimum functionality to build higher order thread synchronizing objects is a pure conditional, and removes dependencies on what may be optional features or functions that may have different behaviors on different pthread implimentations and platforms.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 227 of file condition.h.