summaryrefslogtreecommitdiff
path: root/src/utils/mutex.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-30 22:25:54 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-30 22:25:54 +0300
commit461e4ce83044067d055cf81345c5405c030c1cd8 (patch)
tree0fcbcf731cbfd0e1539476c4c0d507b095b6f17d /src/utils/mutex.h
parentd3d6c6fc60a878b2742bb614e87fee0a04c69759 (diff)
downloadmv-461e4ce83044067d055cf81345c5405c030c1cd8.tar.gz
mv-461e4ce83044067d055cf81345c5405c030c1cd8.tar.bz2
mv-461e4ce83044067d055cf81345c5405c030c1cd8.tar.xz
mv-461e4ce83044067d055cf81345c5405c030c1cd8.zip
Add copy constructor into MutexLocker.
Diffstat (limited to 'src/utils/mutex.h')
-rw-r--r--src/utils/mutex.h5
1 files changed, 5 insertions, 0 deletions
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: