Replaced mutex related code in Common.h
This commit is contained in:
1 parent
0fa3a4923e
commit
ee4a3b9d59
19 files changed
+142
-100
No files matched your search
@@ -187,7 +187,7 @@ Map* MapInstanced::CreateInstanceForPlayer(const uint32 mapId, Player* player)
|
||||
InstanceMap* MapInstanced::CreateInstance(uint32 InstanceId, InstanceSave* save, Difficulty difficulty)
|
||||
{
|
||||
// load/create a map
|
||||
TRINITY_GUARD(ACE_Thread_Mutex, Lock);
|
||||
std::lock_guard<std::mutex> lock(_mapLock);
|
||||
|
||||
// make sure we have a valid map id
|
||||
const MapEntry* entry = sMapStore.LookupEntry(GetId());
|
||||
@@ -223,7 +223,7 @@ InstanceMap* MapInstanced::CreateInstance(uint32 InstanceId, InstanceSave* save,
|
||||
BattlegroundMap* MapInstanced::CreateBattleground(uint32 InstanceId, Battleground* bg)
|
||||
{
|
||||
// load/create a map
|
||||
TRINITY_GUARD(ACE_Thread_Mutex, Lock);
|
||||
std::lock_guard<std::mutex> lock(_mapLock);
|
||||
|
||||
TC_LOG_DEBUG("maps", "MapInstanced::CreateBattleground: map bg %d for %d created.", InstanceId, GetId());
|
||||
|
||||
|
||||
Reference in new issue
Block a user