summaryrefslogtreecommitdiff
path: root/source/modules/asura-utils/threading/mutex.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-03-31 19:59:58 +0800
committerchai <chaifix@163.com>2019-03-31 19:59:58 +0800
commit72bad342ad75294ae85aac8b2e2e7bea54193c15 (patch)
tree79079bc2ae800b97b13169a3be34aea0faa7428b /source/modules/asura-utils/threading/mutex.h
parentfb7ae1149a80a22c77014d0ece33f6f4b965b631 (diff)
*misc
Diffstat (limited to 'source/modules/asura-utils/threading/mutex.h')
-rw-r--r--source/modules/asura-utils/threading/mutex.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/modules/asura-utils/threading/mutex.h b/source/modules/asura-utils/threading/mutex.h
index 7afbe35..5d33be1 100644
--- a/source/modules/asura-utils/threading/mutex.h
+++ b/source/modules/asura-utils/threading/mutex.h
@@ -30,6 +30,10 @@ namespace AsuraEngine
private:
+ // ֹ
+ Mutex(const Mutex&);
+ Mutex& operator=(const Mutex&);
+
MutexImpl* mImpl;
};
@@ -52,7 +56,6 @@ namespace AsuraEngine
Mutex& m;
};
-// ڵջӴλÿʼջΪٽ
#define lock(m) \
if(_mutex_locker _asura_mutex_locker = m){} else