Work on timeout of kick votes.

This commit is contained in:
lotodore
2008-12-06 21:10:46 +00:00
parent 2652625828
commit e0c1662fa5
7 changed files with 163 additions and 55 deletions
+5 -3
View File
@@ -77,12 +77,12 @@ public:
protected:
typedef std::deque<SessionWrapper> SessionQueue;
typedef std::map<unsigned, boost::shared_ptr<VoteKickData> > VoteKickMap;
// Main function of the thread.
virtual void Main();
void RemovePlayerLoop();
void VoteKickLoop();
void VoteKickAction();
void InternalStartGame();
void ResetGame();
@@ -145,8 +145,8 @@ private:
unsigned m_adminPlayerId;
mutable boost::mutex m_adminPlayerIdMutex;
VoteKickMap m_voteKickMap;
mutable boost::mutex m_voteKickMapMutex;
boost::shared_ptr<VoteKickData> m_voteKickData;
mutable boost::mutex m_voteKickDataMutex;
ServerLobbyThread &m_lobbyThread;
boost::shared_ptr<ReceiverHelper> m_receiver;
@@ -166,6 +166,8 @@ private:
boost::timers::portable::microsec_timer m_stateTimer;
unsigned m_stateTimerFlag;
boost::timers::portable::microsec_timer m_voteKickActionTimer;
friend class AbstractServerGameStateReceiving;
friend class AbstractServerGameStateRunning;
friend class AbstractServerGameStateTimer;