From 8a4090fe3f6daa00f5421e2b9fefd2f14790c126 Mon Sep 17 00:00:00 2001 From: Roman Donchenko Date: Fri, 31 May 2013 17:27:42 +0400 Subject: [PATCH] Make AutoLock noncopyable (it would break on copying, anyway). --- modules/core/include/opencv2/core/core.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/core/include/opencv2/core/core.hpp b/modules/core/include/opencv2/core/core.hpp index 1c8e0e2cac..2b7791958f 100644 --- a/modules/core/include/opencv2/core/core.hpp +++ b/modules/core/include/opencv2/core/core.hpp @@ -4813,6 +4813,9 @@ public: ~AutoLock() { mutex->unlock(); } protected: Mutex* mutex; +private: + AutoLock(const AutoLock&); + AutoLock& operator = (const AutoLock&); }; }