Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / Event_Base.cpp
blob31e2249acf8685b61ed8aaa5addfe82bf1af02fd
1 #include "ace/Event_Base.h"
3 #if !defined (__ACE_INLINE__)
4 #include "ace/Event_Base.inl"
5 #endif /* __ACE_INLINE__ */
7 #include "ace/Log_Category.h"
8 #if defined (ACE_HAS_ALLOC_HOOKS)
9 # include "ace/Malloc_Base.h"
10 #endif /* ACE_HAS_ALLOC_HOOKS */
12 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
14 ACE_ALLOC_HOOK_DEFINE(ACE_Event_Base)
16 ACE_Event_Base::ACE_Event_Base ()
17 : removed_ (false)
21 ACE_Event_Base::~ACE_Event_Base ()
23 this->remove ();
26 int
27 ACE_Event_Base::remove ()
29 int result = 0;
30 if (!this->removed_)
32 this->removed_ = true;
33 result = ACE_OS::event_destroy (&this->handle_);
35 return result;
38 int
39 ACE_Event_Base::wait ()
41 return ACE_OS::event_wait (&this->handle_);
44 int
45 ACE_Event_Base::wait (const ACE_Time_Value *abstime, int use_absolute_time)
47 return ACE_OS::event_timedwait (&this->handle_,
48 const_cast <ACE_Time_Value *> (abstime),
49 use_absolute_time);
52 int
53 ACE_Event_Base::signal ()
55 return ACE_OS::event_signal (&this->handle_);
58 int
59 ACE_Event_Base::pulse ()
61 return ACE_OS::event_pulse (&this->handle_);
64 int
65 ACE_Event_Base::reset ()
67 return ACE_OS::event_reset (&this->handle_);
70 void
71 ACE_Event_Base::dump () const
73 #if defined (ACE_HAS_DUMP)
74 ACELIB_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
75 ACELIB_DEBUG ((LM_DEBUG, ACE_END_DUMP));
76 #endif /* ACE_HAS_DUMP */
79 ACE_END_VERSIONED_NAMESPACE_DECL