mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 01:37:00 +00:00
Initial Mangos Three Commit
This commit is contained in:
parent
bb91aa5933
commit
7665a09232
2444 changed files with 625144 additions and 0 deletions
45
dep/acelite/ace/Event.cpp
Normal file
45
dep/acelite/ace/Event.cpp
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
#include "ace/Event.h"
|
||||
|
||||
#if !defined (__ACE_INLINE__)
|
||||
#include "ace/Event.inl"
|
||||
#endif /* __ACE_INLINE__ */
|
||||
|
||||
#include "ace/Log_Category.h"
|
||||
#include "ace/Condition_Attributes.h"
|
||||
#if defined (ACE_HAS_ALLOC_HOOKS)
|
||||
# include "ace/Malloc_Base.h"
|
||||
#endif /* ACE_HAS_ALLOC_HOOKS */
|
||||
|
||||
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
ACE_ALLOC_HOOK_DEFINE_Tc(ACE_Event_T)
|
||||
|
||||
template <class TIME_POLICY>
|
||||
ACE_Event_T<TIME_POLICY>::ACE_Event_T (int manual_reset,
|
||||
int initial_state,
|
||||
int type,
|
||||
const ACE_TCHAR *name,
|
||||
void *arg,
|
||||
LPSECURITY_ATTRIBUTES sa)
|
||||
: ACE_Event_Base ()
|
||||
{
|
||||
ACE_Condition_Attributes_T<TIME_POLICY> cond_attr (type);
|
||||
if (ACE_OS::event_init (&this->handle_,
|
||||
type,
|
||||
&const_cast<ACE_condattr_t&> (cond_attr.attributes ()),
|
||||
manual_reset,
|
||||
initial_state,
|
||||
name,
|
||||
arg,
|
||||
sa) != 0)
|
||||
ACELIB_ERROR ((LM_ERROR,
|
||||
ACE_TEXT ("%p\n"),
|
||||
ACE_TEXT ("ACE_Event_T<TIME_POLICY>::ACE_Event_T")));
|
||||
}
|
||||
|
||||
template <class TIME_POLICY>
|
||||
ACE_Event_T<TIME_POLICY>::~ACE_Event_T (void)
|
||||
{
|
||||
}
|
||||
|
||||
ACE_END_VERSIONED_NAMESPACE_DECL
|
||||
Loading…
Add table
Add a link
Reference in a new issue