3 //==========================================================================
9 * @author Douglas C. Schmidt <d.schmidt@vanderbilt.edu>
11 //==========================================================================
13 #ifndef ACE_NULL_BARRIER_H
14 #define ACE_NULL_BARRIER_H
15 #include /**/ "ace/pre.h"
17 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
20 * @class ACE_Null_Barrier
22 * @brief Implements "NULL barrier synchronization".
24 class ACE_Null_Barrier
27 /// Initialize the barrier to synchronize <count> threads.
28 ACE_Null_Barrier (unsigned int,
33 ~ACE_Null_Barrier (void) {};
35 /// Block the caller until all <count> threads have called <wait> and
36 /// then allow all the caller threads to continue in parallel.
37 int wait (void) { return 0; };
39 /// Dump the state of an object.
40 void dump (void) const {};
42 /// Declare the dynamic allocation hooks.
43 //ACE_ALLOC_HOOK_DECLARE;
46 // = Prevent assignment and initialization.
47 void operator= (const ACE_Null_Barrier
&);
48 ACE_Null_Barrier (const ACE_Null_Barrier
&);
51 ACE_END_VERSIONED_NAMESPACE_DECL
53 #include /**/ "ace/post.h"
54 #endif /* ACE_NULL_BARRIER_H */