summaryrefslogtreecommitdiffstats
path: root/raul/Condition.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-10-16 07:28:30 +0000
committerDavid Robillard <d@drobilla.net>2006-10-16 07:28:30 +0000
commit4e68bf298f9fe4445925b4fe39f28e364a216fd2 (patch)
tree199cf1eb30a32554cffd5f5aa1ac26ad7bf89dba /raul/Condition.h
parente22d5e4bfa4e5de0cba97c0e1a4ea71de9ecbe48 (diff)
downloadraul-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/Condition.h')
-rw-r--r--raul/Condition.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/raul/Condition.h b/raul/Condition.h
index 0f20c29..5517225 100644
--- a/raul/Condition.h
+++ b/raul/Condition.h
@@ -18,15 +18,16 @@
#define RAUL_CONDITION_H
#include <pthread.h>
+#include <boost/utility.hpp>
-/** Trivial (but pretty) wrapper around POSIX Conditions (zero overhead).
+/** Trivial (zero overhead) wrapper around POSIX Conditions.
*
* A semaphore that isn't a counter, is slow, and not realtime safe. Yay.
*
* \ingroup raul
*/
-class Condition {
+class Condition : boost::noncopyable {
public:
inline Condition() { pthread_cond_init(&_cond, NULL); }