Change ObjectAccessor to an ACE_Null_Mutex singleton, since its members have been protected by individual locks.

Also make some of its member functions static.
This commit is contained in:
megamage committed 2011-11-07 09:44:09 -05:00
1 parent f42998277f
commit 495ef10b0d
2 files changed
+15 -22

No files matched your search

+1
View File
@@ -312,6 +312,7 @@ template<>
void Map::DeleteFromWorld(Player* pl)
{
sObjectAccessor->RemoveObject(pl);
sObjectAccessor->RemoveUpdateObject(pl); //TODO: I do not know why we need this, it should be removed in ~Object anyway
delete pl;
}