diff options
author | David Robillard <d@drobilla.net> | 2006-10-16 07:28:30 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-10-16 07:28:30 +0000 |
commit | 4e68bf298f9fe4445925b4fe39f28e364a216fd2 (patch) | |
tree | 199cf1eb30a32554cffd5f5aa1ac26ad7bf89dba /raul/Thread.h | |
parent | e22d5e4bfa4e5de0cba97c0e1a4ea71de9ecbe48 (diff) | |
download | raul-4e68bf298f9fe4445925b4fe39f28e364a216fd2.tar.gz raul-4e68bf298f9fe4445925b4fe39f28e364a216fd2.tar.bz2 raul-4e68bf298f9fe4445925b4fe39f28e364a216fd2.zip |
Used boost::noncopyable to eliminate undefined private copy constructors spread everywhere.
git-svn-id: http://svn.drobilla.net/lad/raul@182 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul/Thread.h')
-rw-r--r-- | raul/Thread.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/raul/Thread.h b/raul/Thread.h index 04a7be4..b7fd9c4 100644 --- a/raul/Thread.h +++ b/raul/Thread.h @@ -20,6 +20,7 @@ #include <string> #include <iostream> #include <pthread.h> +#include <boost/utility.hpp> /** Abstract base class for a thread. @@ -29,7 +30,7 @@ * * \ingroup raul */ -class Thread +class Thread : boost::noncopyable { public: Thread() : _pthread_exists(false) {} @@ -88,10 +89,6 @@ protected: virtual void _run() = 0; private: - // Prevent copies (undefined) - Thread(const Thread&); - Thread& operator=(const Thread&); - inline static void* _static_run(void* me) { Thread* myself = (Thread*)me; myself->_run(); |