From 461e4ce83044067d055cf81345c5405c030c1cd8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 Apr 2016 22:25:54 +0300 Subject: Add copy constructor into MutexLocker. --- src/utils/mutex.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/utils/mutex.h') diff --git a/src/utils/mutex.h b/src/utils/mutex.h index 1de94c12b..22dfa6d2c 100644 --- a/src/utils/mutex.h +++ b/src/utils/mutex.h @@ -57,6 +57,11 @@ class MutexLocker final public: explicit MutexLocker(Mutex *const mutex); + MutexLocker(const MutexLocker &m) : + mMutex(m.mMutex) + { + } + ~MutexLocker(); private: -- cgit v1.2.3-60-g2f50