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
@@ -382,7 +382,7 @@ void Map::DeleteFromWorld(Player* player)
|
||||
|
||||
void Map::EnsureGridCreated(const GridCoord &p)
|
||||
{
|
||||
TRINITY_GUARD(ACE_Thread_Mutex, GridLock);
|
||||
std::lock_guard<std::mutex> lock(_gridLock);
|
||||
EnsureGridCreated_i(p);
|
||||
}
|
||||
|
||||
@@ -2901,7 +2901,7 @@ bool InstanceMap::AddPlayerToMap(Player* player)
|
||||
// Is it needed?
|
||||
|
||||
{
|
||||
TRINITY_GUARD(ACE_Thread_Mutex, Lock);
|
||||
std::lock_guard<std::mutex> lock(_mapLock);
|
||||
// Check moved to void WorldSession::HandleMoveWorldportAckOpcode()
|
||||
//if (!CanEnter(player))
|
||||
//return false;
|
||||
@@ -3242,7 +3242,7 @@ bool BattlegroundMap::CanEnter(Player* player)
|
||||
bool BattlegroundMap::AddPlayerToMap(Player* player)
|
||||
{
|
||||
{
|
||||
TRINITY_GUARD(ACE_Thread_Mutex, Lock);
|
||||
std::lock_guard<std::mutex> lock(_mapLock);
|
||||
//Check moved to void WorldSession::HandleMoveWorldportAckOpcode()
|
||||
//if (!CanEnter(player))
|
||||
//return false;
|
||||
|
||||
Reference in new issue
Block a user