Core/maps: separate mutex for grid

This commit is contained in:
ille committed 2013-01-11 13:11:08 +01:00
1 parent efa094e893
commit bb995fcad1
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -311,7 +311,7 @@ void Map::DeleteFromWorld(Player* player)
void Map::EnsureGridCreated(const GridCoord &p)
{
TRINITY_GUARD(ACE_Thread_Mutex, Lock);
TRINITY_GUARD(ACE_Thread_Mutex, GridLock);
EnsureGridCreated_i(p);
}
+1
View File
@@ -526,6 +526,7 @@ class Map : public GridRefManager<NGridType>
void SetUnloadReferenceLock(const GridCoord &p, bool on) { getNGrid(p.x_coord, p.y_coord)->setUnloadReferenceLock(on); }
ACE_Thread_Mutex Lock;
ACE_Thread_Mutex GridLock;
MapEntry const* i_mapEntry;
uint8 i_spawnMode;