|
blocxx
|
This code is inspired by ACE, by Douglas C. More...
Public Member Functions | |
| SubBarrier () | |
Public Attributes | |
| UInt32 | m_waitingCount |
| The number of waiting threads. More... | |
| Condition | m_cond |
| Condition for threads to wait on. More... | |
This code is inspired by ACE, by Douglas C.
Schmidt schmidt@cs.wustl.edu File Barrier.h and Barrier.cpp We keep two SubBarriers, one for the first "generation" of waiters, and one for the next "generation" of waiters. This efficiently solves the problem of what to do if all the first generation waiters don't leave the barrier before one of the threads calls wait() again (i.e., starts up the next generation barrier).
Definition at line 143 of file ThreadBarrier.cpp.
|
inline |
Definition at line 145 of file ThreadBarrier.cpp.
| Condition BLOCXX_NAMESPACE::ThreadBarrierImpl::SubBarrier::m_cond |
Condition for threads to wait on.
Definition at line 149 of file ThreadBarrier.cpp.
| UInt32 BLOCXX_NAMESPACE::ThreadBarrierImpl::SubBarrier::m_waitingCount |
The number of waiting threads.
Definition at line 147 of file ThreadBarrier.cpp.
1.8.18