#include <Thread.H>
Public Member Functions | |
Barrier (int cnt=0) | |
void | init (int cnt) |
void | wait () |
Protected Member Functions | |
void | signal () |
void | broadcast () |
void | lock () |
void | unlock () |
bool | trylock () |
Barrier::Barrier | ( | int | cnt = 0 |
) | [explicit] |
References init().
void Barrier::init | ( | int | cnt | ) |
void Barrier::wait | ( | ) |
Reimplemented from ConditionVariable.
References ConditionVariable::broadcast(), Thread::Disable, ConditionVariable::lock(), Thread::setCancelState(), ConditionVariable::unlock(), and ConditionVariable::wait().
void ConditionVariable::signal | ( | ) | [inline, inherited] |
Referenced by Semaphore::post(), and SemaphoreB::up().
void ConditionVariable::broadcast | ( | ) | [inline, inherited] |
Referenced by Gate::open(), SingleBarrier::post(), Gate::release(), SingleBarrier::wait(), and wait().
void ConditionVariable::lock | ( | ) | [inline, inherited] |
void ConditionVariable::unlock | ( | ) | [inline, inherited] |
bool ConditionVariable::trylock | ( | ) | [inherited] |