3 //==========================================================================
7 * @author Douglas C. Schmidt <d.schmidt@vanderbilt.edu>
9 //==========================================================================
11 #ifndef ACE_NULL_BARRIER_H
12 #define ACE_NULL_BARRIER_H
13 #include /**/ "ace/pre.h"
15 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
18 * @class ACE_Null_Barrier
20 * @brief Implements "NULL barrier synchronization".
22 class ACE_Null_Barrier
25 /// Initialize the barrier to synchronize <count> threads.
26 ACE_Null_Barrier (unsigned int,
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.
40 /// Declare the dynamic allocation hooks.
41 //ACE_ALLOC_HOOK_DECLARE;
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 */