mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-16 22:15:15 +00:00
restructured repository based on following standards:
https://github.com/HW-Core/directory-structure
This commit is contained in:
43
modules/dep/acelite/ace/OS_Errno.cpp
Normal file
43
modules/dep/acelite/ace/OS_Errno.cpp
Normal file
@@ -0,0 +1,43 @@
|
||||
// -*- C++ -*-
|
||||
#include "ace/OS_Errno.h"
|
||||
|
||||
// Inlining this class on debug builds with gcc on Solaris can cause
|
||||
// deadlocks during static initialization. On non debug builds it
|
||||
// causes compilation errors.
|
||||
#if !defined (ACE_HAS_INLINED_OSCALLS) || \
|
||||
(defined (__GNUG__) && defined (__sun__))
|
||||
# if defined (ACE_INLINE)
|
||||
# undef ACE_INLINE
|
||||
# endif /* ACE_INLINE */
|
||||
# define ACE_INLINE
|
||||
# include "ace/OS_Errno.inl"
|
||||
#endif /* ACE_HAS_INLINED_OSCALLS */
|
||||
|
||||
#if defined (ACE_HAS_WINCE_BROKEN_ERRNO)
|
||||
|
||||
#include "ace/OS_Memory.h"
|
||||
|
||||
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
ACE_CE_Errno *ACE_CE_Errno::instance_ = 0;
|
||||
DWORD ACE_CE_Errno::errno_key_ = 0xffffffff;
|
||||
|
||||
void
|
||||
ACE_CE_Errno::init ()
|
||||
{
|
||||
ACE_NEW (ACE_CE_Errno::instance_,
|
||||
ACE_CE_Errno ());
|
||||
ACE_CE_Errno::errno_key_ = TlsAlloc ();
|
||||
}
|
||||
|
||||
void
|
||||
ACE_CE_Errno::fini ()
|
||||
{
|
||||
TlsFree (ACE_CE_Errno::errno_key_);
|
||||
delete ACE_CE_Errno::instance_;
|
||||
ACE_CE_Errno::instance_ = 0;
|
||||
}
|
||||
|
||||
ACE_END_VERSIONED_NAMESPACE_DECL
|
||||
|
||||
#endif /* ACE_HAS_WINCE_BROKEN_ERRNO */
|
||||
Reference in New Issue
Block a user