Also use Objects as part of an operation but as a result don't generate Any operation...
[ACE_TAO.git] / ACE / ace / Null_Barrier.h
blob50e4e2789eaa328570e7199ed5c9b5beb3a0c872
1 // -*- C++ -*-
3 //==========================================================================
4 /**
5 * @file Null_Barrier.h
7 * Moved from Synch.h.
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
19 /**
20 * @class ACE_Null_Barrier
22 * @brief Implements "NULL barrier synchronization".
24 class ACE_Null_Barrier
26 public:
27 /// Initialize the barrier to synchronize <count> threads.
28 ACE_Null_Barrier (unsigned int,
29 const char * = 0,
30 void * = 0) {};
32 /// Default dtor.
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;
45 private:
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 */