#include <Thread.H>


Public Member Functions | |
| Semaphore (int val_=1) | |
| void | wait () |
| bool | trywait () |
| void | post () |
Protected Member Functions | |
| void | signal () |
| void | broadcast () |
| void | lock () |
| void | unlock () |
| bool | trylock () |
| Semaphore::Semaphore | ( | int | val_ = 1 |
) | [explicit] |
| void Semaphore::wait | ( | ) |
Reimplemented from ConditionVariable.
References ConditionVariable::lock(), ConditionVariable::unlock(), and ConditionVariable::wait().
| bool Semaphore::trywait | ( | ) |
References ConditionVariable::lock(), and ConditionVariable::unlock().
| void Semaphore::post | ( | ) |
References ConditionVariable::lock(), ConditionVariable::signal(), and ConditionVariable::unlock().
| void ConditionVariable::signal | ( | ) | [inline, inherited] |
Referenced by post(), and SemaphoreB::up().
| void ConditionVariable::broadcast | ( | ) | [inline, inherited] |
Referenced by Gate::open(), SingleBarrier::post(), Gate::release(), SingleBarrier::wait(), and Barrier::wait().
| void ConditionVariable::lock | ( | ) | [inline, inherited] |
| void ConditionVariable::unlock | ( | ) | [inline, inherited] |
| bool ConditionVariable::trylock | ( | ) | [inherited] |
1.5.5