From 6739f175796251192f2874d5e96a4a07f30d9e89 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Sat, 30 Apr 2011 14:27:20 +0200 Subject: [PATCH] Non-copyable condition --- base/condition.hpp | 3 +++ base/mutex.hpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/base/condition.hpp b/base/condition.hpp index 4462b1fe45..8841eae5bf 100644 --- a/base/condition.hpp +++ b/base/condition.hpp @@ -12,6 +12,9 @@ namespace threads { impl::ConditionImpl * m_pImpl; + Condition(Condition const &); + Condition & operator=(Condition const &); + public: Condition(); ~Condition(); diff --git a/base/mutex.hpp b/base/mutex.hpp index bd359dfd60..d0f54d7028 100644 --- a/base/mutex.hpp +++ b/base/mutex.hpp @@ -36,7 +36,7 @@ namespace threads pthread_mutex_t m_Mutex; #endif - Mutex const & operator=(Mutex const &); + Mutex & operator=(Mutex const &); Mutex(Mutex const &); friend class threads::impl::ConditionImpl;