3 //==========================================================================
7 * $Id: Null_Barrier.h 80826 2008-03-04 14:51:23Z wotte $
11 * @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
13 //==========================================================================
15 #ifndef ACE_NULL_BARRIER_H
16 #define ACE_NULL_BARRIER_H
17 #include /**/ "ace/pre.h"
19 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
21 // All methods in this class are inline, so there is no
22 // need to import or export on Windows. -- CAE 12/18/2003
25 * @class ACE_Null_Barrier
27 * @brief Implements "NULL barrier synchronization".
29 class ACE_Null_Barrier
32 /// Initialize the barrier to synchronize <count> threads.
33 ACE_Null_Barrier (unsigned int,
38 ~ACE_Null_Barrier (void) {};
40 /// Block the caller until all <count> threads have called <wait> and
41 /// then allow all the caller threads to continue in parallel.
42 int wait (void) { return 0; };
44 /// Dump the state of an object.
45 void dump (void) const {};
47 /// Declare the dynamic allocation hooks.
48 //ACE_ALLOC_HOOK_DECLARE;
51 // = Prevent assignment and initialization.
52 void operator= (const ACE_Null_Barrier
&);
53 ACE_Null_Barrier (const ACE_Null_Barrier
&);
56 ACE_END_VERSIONED_NAMESPACE_DECL
58 #include /**/ "ace/post.h"
59 #endif /* ACE_NULL_BARRIER_H */