From 33282f15338051454dff690e0ba07b1fa3503a97 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 23 Jul 2017 12:46:08 +0200 Subject: Make Semaphore non-copyable --- raul/Semaphore.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'raul') diff --git a/raul/Semaphore.hpp b/raul/Semaphore.hpp index d94da17..7edb973 100644 --- a/raul/Semaphore.hpp +++ b/raul/Semaphore.hpp @@ -58,6 +58,9 @@ public: } } + inline Semaphore(const Semaphore&) = delete; + inline Semaphore& operator=(const Semaphore&) = delete; + inline ~Semaphore() { destroy(); } -- cgit v1.2.1