Replaced mutex related code in Common.h

This commit is contained in:
leak
2014-06-08 15:30:57 +02:00
parent 0fa3a4923e
commit ee4a3b9d59
19 changed files with 142 additions and 100 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ public:
bool first = true;
bool footer = false;
TRINITY_READ_GUARD(HashMapHolder<Player>::LockType, *HashMapHolder<Player>::GetLock());
boost::shared_lock<boost::shared_mutex> lock(*HashMapHolder<Player>::GetLock());
HashMapHolder<Player>::MapType const& m = sObjectAccessor->GetPlayers();
for (HashMapHolder<Player>::MapType::const_iterator itr = m.begin(); itr != m.end(); ++itr)
{