Make AutoLock noncopyable (it would break on copying, anyway).
authorRoman Donchenko <roman.donchenko@itseez.com>
Fri, 31 May 2013 13:27:42 +0000 (17:27 +0400)
committerRoman Donchenko <roman.donchenko@itseez.com>
Fri, 31 May 2013 13:27:42 +0000 (17:27 +0400)
modules/core/include/opencv2/core/core.hpp

index 1c8e0e2..2b77919 100644 (file)
@@ -4813,6 +4813,9 @@ public:
     ~AutoLock() { mutex->unlock(); }
 protected:
     Mutex* mutex;
+private:
+    AutoLock(const AutoLock&);
+    AutoLock& operator = (const AutoLock&);
 };
 
 }