diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-04-30 22:25:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-04-30 22:25:54 +0300 |
commit | 461e4ce83044067d055cf81345c5405c030c1cd8 (patch) | |
tree | 0fcbcf731cbfd0e1539476c4c0d507b095b6f17d /src/utils/mutex.h | |
parent | d3d6c6fc60a878b2742bb614e87fee0a04c69759 (diff) | |
download | plus-461e4ce83044067d055cf81345c5405c030c1cd8.tar.gz plus-461e4ce83044067d055cf81345c5405c030c1cd8.tar.bz2 plus-461e4ce83044067d055cf81345c5405c030c1cd8.tar.xz plus-461e4ce83044067d055cf81345c5405c030c1cd8.zip |
Add copy constructor into MutexLocker.
Diffstat (limited to 'src/utils/mutex.h')
-rw-r--r-- | src/utils/mutex.h | 5 |
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: |