mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
server mutex fix
This commit is contained in:
parent
38b31681e2
commit
c4ba33dfeb
3 changed files with 12 additions and 3 deletions
|
|
@ -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(); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue