Fixed two race conditions.

This commit is contained in:
lotodore
2007-10-30 21:25:10 +00:00
parent fee8450a74
commit b0524a59ff
3 changed files with 46 additions and 27 deletions
+4 -1
View File
@@ -150,6 +150,7 @@ private:
SessionManager m_gameSessionManager;
InitTimerSessionMap m_initTimerSessionMap;
mutable boost::mutex m_initTimerSessionMapMutex;
RemoveGameList m_removeGameList;
mutable boost::mutex m_removeGameListMutex;
@@ -173,9 +174,11 @@ private:
u_int32_t m_curSessionId;
mutable boost::mutex m_curUniquePlayerIdMutex;
ServerStats m_lastStatData;
unsigned m_totalPlayersLoggedIn;
unsigned m_totalGamesStarted;
ServerStats m_lastStatData;
mutable boost::mutex m_statMutex;
boost::timers::portable::microsec_timer m_cacheCleanupTimer;
};