blocxx
Classes | Public Member Functions | Private Attributes

BLOCXX_NAMESPACE::ThreadBarrierImpl Class Reference

Inheritance diagram for BLOCXX_NAMESPACE::ThreadBarrierImpl:
BLOCXX_NAMESPACE::IntrusiveCountableBase

List of all members.

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

Detailed Description

Definition at line 100 of file ThreadBarrier.cpp.


Constructor & Destructor Documentation

BLOCXX_NAMESPACE::ThreadBarrierImpl::ThreadBarrierImpl ( UInt32  threshold) [inline]

Definition at line 121 of file ThreadBarrier.cpp.


Member Function Documentation

void BLOCXX_NAMESPACE::ThreadBarrierImpl::wait ( ) [inline]

Member Data Documentation

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().

The number of threads to synchronize.

Definition at line 154 of file ThreadBarrier.cpp.

Referenced by wait().


The documentation for this class was generated from the following file: