blocxx
BLOCXX_NAMESPACE::ThreadBarrierImpl Class Reference
Inheritance diagram for BLOCXX_NAMESPACE::ThreadBarrierImpl:
BLOCXX_NAMESPACE::IntrusiveCountableBase

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

- Protected Member Functions inherited from BLOCXX_NAMESPACE::IntrusiveCountableBase
 IntrusiveCountableBase ()
 
 IntrusiveCountableBase (const IntrusiveCountableBase &)
 
IntrusiveCountableBaseoperator= (const IntrusiveCountableBase &)
 
virtual ~IntrusiveCountableBase ()
 

Detailed Description

Definition at line 100 of file ThreadBarrier.cpp.

Constructor & Destructor Documentation

◆ ThreadBarrierImpl()

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

Definition at line 121 of file ThreadBarrier.cpp.

Member Function Documentation

◆ wait()

Member Data Documentation

◆ m_curSubBarrier

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

◆ m_mutex

NonRecursiveMutex BLOCXX_NAMESPACE::ThreadBarrierImpl::m_mutex
private

Definition at line 158 of file ThreadBarrier.cpp.

Referenced by wait().

◆ m_subBarrier0

SubBarrier BLOCXX_NAMESPACE::ThreadBarrierImpl::m_subBarrier0
private

Definition at line 159 of file ThreadBarrier.cpp.

Referenced by wait().

◆ m_subBarrier1

SubBarrier BLOCXX_NAMESPACE::ThreadBarrierImpl::m_subBarrier1
private

Definition at line 160 of file ThreadBarrier.cpp.

Referenced by wait().

◆ m_threshold

UInt32 BLOCXX_NAMESPACE::ThreadBarrierImpl::m_threshold
private

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: