From 4e68bf298f9fe4445925b4fe39f28e364a216fd2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 16 Oct 2006 07:28:30 +0000 Subject: 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 --- raul/Mutex.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'raul/Mutex.h') diff --git a/raul/Mutex.h b/raul/Mutex.h index 57dedba..bf16d3c 100644 --- a/raul/Mutex.h +++ b/raul/Mutex.h @@ -18,13 +18,14 @@ #define RAUL_MUTEX_H #include +#include -/** Trivial (but pretty) wrapper around POSIX Mutexes (zero overhead). +/** Trivial (zero overhead) wrapper around POSIX Mutexes. * * \ingroup raul */ -class Mutex { +class Mutex : boost::noncopyable { public: inline Mutex() { pthread_mutex_init(&_mutex, NULL); } -- cgit v1.2.1