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/Semaphore.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/Semaphore.h')
-rw-r--r-- | raul/Semaphore.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/raul/Semaphore.h b/raul/Semaphore.h index 213e1d0..bd06b65 100644 --- a/raul/Semaphore.h +++ b/raul/Semaphore.h @@ -18,6 +18,7 @@ #define RAUL_SEMAPHORE_H #include <semaphore.h> +#include <boost/utility.hpp> /** Trivial wrapper around POSIX semaphores (zero memory overhead). @@ -31,7 +32,7 @@ * * \ingroup raul */ -class Semaphore { +class Semaphore : boost::noncopyable { public: inline Semaphore(unsigned int initial) { sem_init(&m_sem, 0, initial); } |