blocxx
|
Classes | |
struct | SubBarrier |
This code is inspired by ACE, by Douglas C. More... | |
Public Member Functions | |
ThreadBarrierImpl (UInt32 threshold) | |
void | wait () |
Private Attributes | |
UInt32 | m_threshold |
The number of threads to synchronize. | |
int | m_curSubBarrier |
Either 0 or 1, depending on whether we are the first generation of waiters or the next generation of waiters. | |
NonRecursiveMutex | m_mutex |
SubBarrier | m_subBarrier0 |
SubBarrier | m_subBarrier1 |
Definition at line 100 of file ThreadBarrier.cpp.
BLOCXX_NAMESPACE::ThreadBarrierImpl::ThreadBarrierImpl | ( | UInt32 | threshold | ) | [inline] |
Definition at line 121 of file ThreadBarrier.cpp.
void BLOCXX_NAMESPACE::ThreadBarrierImpl::wait | ( | ) | [inline] |
Definition at line 126 of file ThreadBarrier.cpp.
References BLOCXX_NAMESPACE::ThreadBarrierImpl::SubBarrier::m_cond, m_curSubBarrier, m_mutex, m_subBarrier0, m_subBarrier1, m_threshold, BLOCXX_NAMESPACE::ThreadBarrierImpl::SubBarrier::m_waitingCount, BLOCXX_NAMESPACE::Condition::notifyAll(), and BLOCXX_NAMESPACE::Condition::wait().
int BLOCXX_NAMESPACE::ThreadBarrierImpl::m_curSubBarrier [private] |
Either 0 or 1, depending on whether we are the first generation of waiters or the next generation of waiters.
Definition at line 157 of file ThreadBarrier.cpp.
Referenced by wait().
Definition at line 158 of file ThreadBarrier.cpp.
Referenced by wait().
Definition at line 159 of file ThreadBarrier.cpp.
Referenced by wait().
Definition at line 160 of file ThreadBarrier.cpp.
Referenced by wait().
UInt32 BLOCXX_NAMESPACE::ThreadBarrierImpl::m_threshold [private] |
The number of threads to synchronize.
Definition at line 154 of file ThreadBarrier.cpp.
Referenced by wait().