X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fthread.h;h=6a17912fdc3c03e0d0904aeb768b8a40ee316212;hb=242a4a9abe1e1113b5eb39aa751aa054f696d7be;hp=7cf17b8d327ed3e84075bb4c247f4c5d16c4ff6f;hpb=1a563cfd722a5571428562259790b4948980dd4f;p=libs%2Fcore.git diff --git a/source/core/thread.h b/source/core/thread.h index 7cf17b8..6a17912 100644 --- a/source/core/thread.h +++ b/source/core/thread.h @@ -2,6 +2,7 @@ #define MSP_CORE_THREAD_H_ #include +#include "noncopyable.h" namespace Msp { @@ -12,7 +13,7 @@ automatically started upon creation - you must manually call launch() instead. This is to allow initializing variables of the derived class before the thread is started. */ -class Thread +class Thread: private NonCopyable { private: struct Private; @@ -32,9 +33,6 @@ private: protected: Thread(const std::string & = std::string()); -private: - Thread(const Thread &); - Thread &operator=(const Thread &); public: virtual ~Thread();