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
@@ -23,7 +23,7 @@
#include <core/thread.h>
#include <string>
#include <memory>
#include <boost/shared_ptr.hpp>
class ClientContext;
@@ -53,7 +53,7 @@ protected:
private:
std::auto_ptr<ClientContext> m_context;
boost::shared_ptr<ClientContext> m_context;
bool m_retVal;
};