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 ()
21 ACE_Event_Base::~ACE_Event_Base ()
27 ACE_Event_Base::remove ()
32 this->removed_
= true;
33 result
= ACE_OS::event_destroy (&this->handle_
);
39 ACE_Event_Base::wait ()
41 return ACE_OS::event_wait (&this->handle_
);
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
),
53 ACE_Event_Base::signal ()
55 return ACE_OS::event_signal (&this->handle_
);
59 ACE_Event_Base::pulse ()
61 return ACE_OS::event_pulse (&this->handle_
);
65 ACE_Event_Base::reset ()
67 return ACE_OS::event_reset (&this->handle_
);
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