Manual_Event.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //==========================================================================
00004 /**
00005  *  @file    Manual_Event.h
00006  *
00007  *  Manual_Event.h,v 4.2 2005/10/28 16:14:53 ossama Exp
00008  *
00009  *   Moved from Synch.h.
00010  *
00011  *  @author Douglas C. Schmidt <schmidt@cs.wustl.edu>
00012  */
00013 //==========================================================================
00014 
00015 #ifndef ACE_MANUAL_EVENT_H
00016 #define ACE_MANUAL_EVENT_H
00017 #include /**/ "ace/pre.h"
00018 
00019 #include "ace/ACE_export.h"
00020 
00021 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00022 # pragma once
00023 #endif /* ACE_LACKS_PRAGMA_ONCE */
00024 
00025 #include "ace/Event.h"
00026 
00027 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00028 
00029 /**
00030  * @class ACE_Manual_Event
00031  *
00032  * @brief Manual Events.
00033  *
00034  * Specialization of Event mechanism which wakes up all waiting
00035  * thread on <signal>.  All platforms support process-scope locking
00036  * support.  However, only Win32 platforms support global naming and
00037  * system-scope locking support.
00038  */
00039 class ACE_Export ACE_Manual_Event : public ACE_Event
00040 {
00041 public:
00042   /// constructor which will create manual event
00043   ACE_Manual_Event (int initial_state = 0,
00044                     int type = USYNC_THREAD,
00045                     const char *name = 0,
00046                     void *arg = 0);
00047 
00048 #if defined (ACE_HAS_WCHAR)
00049   /// constructor which will create manual event (wchar_t version)
00050   ACE_Manual_Event (int initial_state,
00051                     int type,
00052                     const wchar_t *name,
00053                     void *arg = 0);
00054 #endif /* ACE_HAS_WCHAR */
00055 
00056   /// Default dtor.
00057   ~ACE_Manual_Event (void);
00058 
00059   /// Dump the state of an object.
00060   void dump (void) const;
00061 
00062   /// Declare the dynamic allocation hooks
00063   ACE_ALLOC_HOOK_DECLARE;
00064 };
00065 
00066 ACE_END_VERSIONED_NAMESPACE_DECL
00067 
00068 #if defined (__ACE_INLINE__)
00069 #include "ace/Manual_Event.inl"
00070 #endif /* __ACE_INLINE__ */
00071 
00072 
00073 #include /**/ "ace/post.h"
00074 #endif /* ACE_MANUAL_EVENT_H */

Generated on Thu Nov 9 09:41:54 2006 for ACE by doxygen 1.3.6