From 6448bf3869c3b4e96107605cb3427d0014dac42e Mon Sep 17 00:00:00 2001 From: Winfidonarleyan Date: Mon, 15 Mar 2021 21:57:19 +0700 Subject: [PATCH] feat(GlobalMethods/AzerothCore): switch to new threading system Part https://github.com/azerothcore/azerothcore-wotlk/pull/4821 --- GlobalMethods.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GlobalMethods.h b/GlobalMethods.h index 4dbf972..c4d0039 100644 --- a/GlobalMethods.h +++ b/GlobalMethods.h @@ -10,7 +10,9 @@ #include "BindingMap.h" #ifdef AZEROTHCORE + #include "BanManager.h" + enum BanMode { BAN_ACCOUNT = 1, @@ -198,10 +200,8 @@ namespace LuaGlobalFunctions }); #else { -#ifdef TRINITY +#if defined TRINITY || AZEROTHCORE std::shared_lock lock(*HashMapHolder::GetLock()); -#elif defined(AZEROTHCORE) - ACORE_READ_GUARD(HashMapHolder::LockType, *HashMapHolder::GetLock()); #else HashMapHolder::ReadGuard g(HashMapHolder::GetLock()); #endif