ACE  6.1.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
ACE_Thread_Barrier Class Reference

Implements "barrier synchronization" using ACE_Thread_Mutexes! More...

#include <Barrier.h>

Inheritance diagram for ACE_Thread_Barrier:
Inheritance graph
[legend]
Collaboration diagram for ACE_Thread_Barrier:
Collaboration graph
[legend]

Public Member Functions

 ACE_Thread_Barrier (unsigned int count, const ACE_TCHAR *name=0)
 Create a Thread_Barrier, passing in the optional name. More...
 
 ~ACE_Thread_Barrier (void)
 Default destructor. More...
 
void dump (void) const
 Dump the state of an object. More...
 
- Public Member Functions inherited from ACE_Barrier
 ACE_Barrier (unsigned int count, const ACE_TCHAR *name=0, void *arg=0)
 Initialize the barrier to synchronize count threads. More...
 
 ~ACE_Barrier (void)
 Default destructor. More...
 
int wait (void)
 
int shutdown (void)
 
void dump (void) const
 Dump the state of an object. More...
 

Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks. More...
 
- Public Attributes inherited from ACE_Barrier
 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks. More...
 

Additional Inherited Members

- Protected Attributes inherited from ACE_Barrier
ACE_Thread_Mutex lock_
 Serialize access to the barrier state. More...
 
int current_generation_
 
int count_
 Total number of threads that can be waiting at any one time. More...
 
ACE_Sub_Barrier sub_barrier_1_
 
ACE_Sub_Barrier sub_barrier_2_
 
ACE_Sub_Barriersub_barrier_ [2]
 

Detailed Description

Implements "barrier synchronization" using ACE_Thread_Mutexes!

This class is just a simple wrapper for ACE_Barrier that selects the USYNC_THREAD variant for the locks.

Constructor & Destructor Documentation

ACE_Thread_Barrier::ACE_Thread_Barrier ( unsigned int  count,
const ACE_TCHAR name = 0 
)

Create a Thread_Barrier, passing in the optional name.

ACE_Thread_Barrier::~ACE_Thread_Barrier ( void  )
inline

Default destructor.

Member Function Documentation

void ACE_Thread_Barrier::dump ( void  ) const

Dump the state of an object.

Member Data Documentation

ACE_Thread_Barrier::ACE_ALLOC_HOOK_DECLARE

Declare the dynamic allocation hooks.


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