Make AutoLock noncopyable (it would break on copying, anyway).

This commit is contained in:
Roman Donchenko
2013-05-31 17:27:42 +04:00
parent 37091b086c
commit 8a4090fe3f

View File

@@ -4813,6 +4813,9 @@ public:
~AutoLock() { mutex->unlock(); }
protected:
Mutex* mutex;
private:
AutoLock(const AutoLock&);
AutoLock& operator = (const AutoLock&);
};
}