mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Merge new_bindings, closes #151
Refer to 6194ddb43c for new C++11 required changes for mangos based cores
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
#ifndef _ELUNA_UTIL_H
|
||||
#define _ELUNA_UTIL_H
|
||||
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
#include "Common.h"
|
||||
#include "SharedDefines.h"
|
||||
#include "ObjectGuid.h"
|
||||
@@ -28,8 +30,6 @@
|
||||
#ifdef USING_BOOST
|
||||
#include <boost/thread/locks.hpp>
|
||||
#include <boost/thread/shared_mutex.hpp>
|
||||
#else
|
||||
#include <ace/Recursive_Thread_Mutex.h>
|
||||
#endif
|
||||
|
||||
#ifdef TRINITY
|
||||
@@ -50,15 +50,6 @@ typedef QueryNamedResult ElunaQuery;
|
||||
#define GetTemplate GetProto
|
||||
#endif
|
||||
|
||||
#ifndef UNORDERED_MAP
|
||||
#include <unordered_map>
|
||||
#define UNORDERED_MAP std::unordered_map
|
||||
#endif
|
||||
#ifndef UNORDERED_SET
|
||||
#include <unordered_set>
|
||||
#define UNORDERED_SET std::unordered_set
|
||||
#endif
|
||||
|
||||
#ifndef MAKE_NEW_GUID
|
||||
#define MAKE_NEW_GUID(l, e, h) ObjectGuid(h, e, l)
|
||||
#endif
|
||||
@@ -132,11 +123,11 @@ namespace ElunaUtil
|
||||
public:
|
||||
|
||||
#ifdef USING_BOOST
|
||||
typedef boost::recursive_mutex LockType;
|
||||
typedef boost::shared_lock<boost::shared_mutex> ReadGuard;
|
||||
typedef boost::unique_lock<boost::shared_mutex> WriteGuard;
|
||||
typedef boost::shared_mutex LockType;
|
||||
typedef boost::shared_lock<LockType> ReadGuard;
|
||||
typedef boost::unique_lock<LockType> WriteGuard;
|
||||
#else
|
||||
typedef ACE_Recursive_Thread_Mutex LockType;
|
||||
typedef ACE_RW_Thread_Mutex LockType;
|
||||
typedef ACE_Read_Guard<LockType> ReadGuard;
|
||||
typedef ACE_Write_Guard<LockType> WriteGuard;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user