Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / Null_Barrier.h
blobc2654097896d867ae530609e61ac160f929ca0d8
1 // -*- C++ -*-
3 //==========================================================================
4 /**
5 * @file Null_Barrier.h
7 * @author Douglas C. Schmidt <d.schmidt@vanderbilt.edu>
8 */
9 //==========================================================================
11 #ifndef ACE_NULL_BARRIER_H
12 #define ACE_NULL_BARRIER_H
13 #include /**/ "ace/pre.h"
15 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
17 /**
18 * @class ACE_Null_Barrier
20 * @brief Implements "NULL barrier synchronization".
22 class ACE_Null_Barrier
24 public:
25 /// Initialize the barrier to synchronize <count> threads.
26 ACE_Null_Barrier (unsigned int,
27 const char * = 0,
28 void * = 0) {}
30 /// Default dtor.
31 ~ACE_Null_Barrier () = default;
33 /// Block the caller until all <count> threads have called <wait> and
34 /// then allow all the caller threads to continue in parallel.
35 int wait () { return 0; }
37 /// Dump the state of an object.
38 void dump () const {}
40 /// Declare the dynamic allocation hooks.
41 //ACE_ALLOC_HOOK_DECLARE;
43 private:
44 void operator= (const ACE_Null_Barrier &) = delete;
45 ACE_Null_Barrier (const ACE_Null_Barrier &) = delete;
48 ACE_END_VERSIONED_NAMESPACE_DECL
50 #include /**/ "ace/post.h"
51 #endif /* ACE_NULL_BARRIER_H */