summaryrefslogtreecommitdiffstats
path: root/raul/Semaphore.h
diff options
context:
space:
mode:
Diffstat (limited to 'raul/Semaphore.h')
-rw-r--r--raul/Semaphore.h3
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); }