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 |
Additional Inherited Members | |
![]() | |
IntrusiveCountableBase () | |
IntrusiveCountableBase (const IntrusiveCountableBase &) | |
IntrusiveCountableBase & | operator= (const IntrusiveCountableBase &) |
virtual | ~IntrusiveCountableBase () |
Definition at line 100 of file ThreadBarrier.cpp.
|
inline |
Definition at line 121 of file ThreadBarrier.cpp.
|
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().
|
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().
|
private |
Definition at line 158 of file ThreadBarrier.cpp.
Referenced by wait().
|
private |
Definition at line 159 of file ThreadBarrier.cpp.
Referenced by wait().
|
private |
Definition at line 160 of file ThreadBarrier.cpp.
Referenced by wait().
|
private |
The number of threads to synchronize.
Definition at line 154 of file ThreadBarrier.cpp.
Referenced by wait().