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 -3
View File
@@ -25,7 +25,6 @@
#include <core/thread.h>
#include <gui/guiinterface.h>
#include <string>
#include <memory>
class ServerContext;
class ServerLobbyThread;
@@ -61,8 +60,8 @@ protected:
ServerLobbyThread &GetLobbyThread();
private:
std::auto_ptr<ServerContext> m_context;
std::auto_ptr<ServerLobbyThread> m_lobbyThread;
boost::shared_ptr<ServerContext> m_context;
boost::shared_ptr<ServerLobbyThread> m_lobbyThread;
GuiInterface &m_gui;
};