00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 #ifndef ACE_AUTO_EVENT_H
00016 #define ACE_AUTO_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 
00024 
00025 #include "ace/Event.h"
00026 
00027 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00028 
00029 
00030 
00031 
00032 
00033 
00034 
00035 
00036 
00037 
00038 
00039 class ACE_Export ACE_Auto_Event : public ACE_Event
00040 {
00041 public:
00042 
00043   ACE_Auto_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 
00050   ACE_Auto_Event (int initial_state,
00051                   int type,
00052                   const wchar_t *name,
00053                   void *arg = 0);
00054 #endif 
00055 
00056 
00057   ~ACE_Auto_Event (void);
00058 
00059 
00060   void dump (void) const;
00061 
00062 
00063   ACE_ALLOC_HOOK_DECLARE;
00064 };
00065 
00066 ACE_END_VERSIONED_NAMESPACE_DECL
00067 
00068 #if defined (__ACE_INLINE__)
00069 #include "ace/Auto_Event.inl"
00070 #endif 
00071 
00072 #include  "ace/post.h"
00073 #endif