X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fthread.h;h=6a17912fdc3c03e0d0904aeb768b8a40ee316212;hp=7cf17b8d327ed3e84075bb4c247f4c5d16c4ff6f;hb=c3e242c2629cbc9645258b30aaf07b7285d4372b;hpb=a4596d1c2f627e4568eb6c01d81b6e45f488715a 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();