server mutex fix

This commit is contained in:
Max-Wilhelm Bruker 2011-04-21 02:04:15 +02:00
parent 38b31681e2
commit c4ba33dfeb
3 changed files with 12 additions and 3 deletions

View file

@ -43,6 +43,7 @@ private:
public:
Server_Player(Server_Game *_game, int _playerId, ServerInfo_User *_userInfo, bool _spectator, Server_ProtocolHandler *_handler);
~Server_Player();
void prepareDestroy();
void moveToThread(QThread *thread);
Server_ProtocolHandler *getProtocolHandler() const { return handler; }
void setProtocolHandler(Server_ProtocolHandler *_handler) { playerMutex.lock(); handler = _handler; playerMutex.unlock(); }