Files
TCPlayerbotCore/dep/ACE_wrappers/ace/Null_Barrier.h
T

61 lines
1.5 KiB
C++
Raw Normal View History

// -*- C++ -*-
2009-10-17 15:51:44 -07:00
//==========================================================================
/**
* @file Null_Barrier.h
*
* $Id: Null_Barrier.h 80826 2008-03-04 14:51:23Z wotte $
*
* Moved from Synch.h.
*
* @author Douglas C. Schmidt <[email protected]>
*/
//==========================================================================
2009-10-17 15:51:44 -07:00
#ifndef ACE_NULL_BARRIER_H
#define ACE_NULL_BARRIER_H
#include /**/ "ace/pre.h"
2009-10-17 15:51:44 -07:00
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
2009-10-17 15:51:44 -07:00
// All methods in this class are inline, so there is no
// need to import or export on Windows. -- CAE 12/18/2003
2009-10-17 15:51:44 -07:00
/**
* @class ACE_Null_Barrier
*
* @brief Implements "NULL barrier synchronization".
*/
class ACE_Null_Barrier
{
public:
/// Initialize the barrier to synchronize <count> threads.
ACE_Null_Barrier (unsigned int,
const char * = 0,
void * = 0) {};
2009-10-17 15:51:44 -07:00
/// Default dtor.
~ACE_Null_Barrier (void) {};
2009-10-17 15:51:44 -07:00
/// Block the caller until all <count> threads have called <wait> and
/// then allow all the caller threads to continue in parallel.
int wait (void) { return 0; };
2009-10-17 15:51:44 -07:00
/// Dump the state of an object.
void dump (void) const {};
2009-10-17 15:51:44 -07:00
/// Declare the dynamic allocation hooks.
//ACE_ALLOC_HOOK_DECLARE;
2009-10-17 15:51:44 -07:00
private:
// = Prevent assignment and initialization.
void operator= (const ACE_Null_Barrier &);
ACE_Null_Barrier (const ACE_Null_Barrier &);
};
2009-10-17 15:51:44 -07:00
ACE_END_VERSIONED_NAMESPACE_DECL
2009-10-17 15:51:44 -07:00
#include /**/ "ace/post.h"
#endif /* ACE_NULL_BARRIER_H */
2009-02-17 20:07:49 -06:00