Fixed typos
[ACE_TAO.git] / ACE / ace / Event.cpp
blob20fe073064445780f415c00722d104c27baba377
1 #include "ace/Event.h"
3 #if !defined (__ACE_INLINE__)
4 #include "ace/Event.inl"
5 #endif /* __ACE_INLINE__ */
7 #include "ace/Log_Category.h"
8 #include "ace/Condition_Attributes.h"
9 #if defined (ACE_HAS_ALLOC_HOOKS)
10 # include "ace/Malloc_Base.h"
11 #endif /* ACE_HAS_ALLOC_HOOKS */
13 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
15 ACE_ALLOC_HOOK_DEFINE_Tc(ACE_Event_T)
17 template <class TIME_POLICY>
18 ACE_Event_T<TIME_POLICY>::ACE_Event_T (int manual_reset,
19 int initial_state,
20 int type,
21 const ACE_TCHAR *name,
22 void *arg,
23 LPSECURITY_ATTRIBUTES sa)
24 : ACE_Event_Base ()
26 ACE_Condition_Attributes_T<TIME_POLICY> cond_attr (type);
27 if (ACE_OS::event_init (&this->handle_,
28 type,
29 &const_cast<ACE_condattr_t&> (cond_attr.attributes ()),
30 manual_reset,
31 initial_state,
32 name,
33 arg,
34 sa) != 0)
35 ACELIB_ERROR ((LM_ERROR,
36 ACE_TEXT ("%p\n"),
37 ACE_TEXT ("ACE_Event_T<TIME_POLICY>::ACE_Event_T")));
40 template <class TIME_POLICY>
41 ACE_Event_T<TIME_POLICY>::~ACE_Event_T (void)
45 ACE_END_VERSIONED_NAMESPACE_DECL