Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Sub_Barrier Struct Reference

#include <Synch.h>

Collaboration diagram for ACE_Sub_Barrier:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_Sub_Barrier (u_int count, ACE_Thread_Mutex &lock, const ACE_TCHAR *name=0, void *arg=0)
 ~ACE_Sub_Barrier (void)
void dump (void) const
 Dump the state of an object. More...


Public Attributes

ACE_Condition_Thread_Mutex barrier_finished_
 True if this generation of the barrier is done. More...

int running_threads_
 Number of threads that are still running. More...

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks. More...


Constructor & Destructor Documentation

ACE_Sub_Barrier::ACE_Sub_Barrier u_int    count,
ACE_Thread_Mutex   lock,
const ACE_TCHAR   name = 0,
void *    arg = 0
 

Definition at line 695 of file Synch.cpp.

References ACE_TCHAR.

00699   : barrier_finished_ (lock, name, arg),
00700     running_threads_ (count)
00701 {
00702 // ACE_TRACE ("ACE_Sub_Barrier::ACE_Sub_Barrier");
00703 }

ACE_Sub_Barrier::~ACE_Sub_Barrier void   
 


Member Function Documentation

void ACE_Sub_Barrier::dump void    const
 

Dump the state of an object.

Definition at line 684 of file Synch.cpp.

References ACE_BEGIN_DUMP, ACE_DEBUG, ACE_END_DUMP, ACE_LIB_TEXT, barrier_finished_, ACE_Condition_Thread_Mutex::dump, and LM_DEBUG.

Referenced by ACE_Barrier::dump.

00685 {
00686 // ACE_TRACE ("ACE_Sub_Barrier::dump");
00687 
00688   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00689   this->barrier_finished_.dump ();
00690   ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("running_threads_ = %d"), this->running_threads_));
00691   ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("\n")));
00692   ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00693 }


Member Data Documentation

ACE_Sub_Barrier::ACE_ALLOC_HOOK_DECLARE
 

Declare the dynamic allocation hooks.

Definition at line 1536 of file Synch.h.

ACE_Condition_Thread_Mutex ACE_Sub_Barrier::barrier_finished_
 

True if this generation of the barrier is done.

Definition at line 1527 of file Synch.h.

Referenced by dump, and ACE_Barrier::wait.

int ACE_Sub_Barrier::running_threads_
 

Number of threads that are still running.

Definition at line 1530 of file Synch.h.

Referenced by ACE_Barrier::wait.


The documentation for this struct was generated from the following files:
Generated on Mon Jun 16 12:57:04 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002