Use boost::shared_ptr instead of std::auto_ptr where threads are involved, because std::auto_ptr is not thread safe.
This commit is contained in:
@@ -133,8 +133,8 @@ private:
|
||||
mutable boost::mutex m_adminPlayerIdMutex;
|
||||
|
||||
ServerLobbyThread &m_lobbyThread;
|
||||
std::auto_ptr<ReceiverHelper> m_receiver;
|
||||
std::auto_ptr<SenderThread> m_sender;
|
||||
boost::shared_ptr<ReceiverHelper> m_receiver;
|
||||
boost::shared_ptr<SenderThread> m_sender;
|
||||
boost::shared_ptr<GameSenderCallback> m_senderCallback;
|
||||
GuiInterface &m_gui;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user