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:
lotodore
2007-11-14 13:19:28 +00:00
parent 9e7a6d7d8b
commit 5328bf082f
5 changed files with 12 additions and 14 deletions
+2 -2
View File
@@ -164,8 +164,8 @@ private:
GameMap m_gameMap;
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<ServerSenderCallback> m_senderCallback;
GuiInterface &m_gui;
AvatarManager &m_avatarManager;