diff options
author | Grant Limberg <grant.limberg@zerotier.com> | 2017-09-27 15:05:13 -0700 |
---|---|---|
committer | Grant Limberg <grant.limberg@zerotier.com> | 2017-09-27 15:05:13 -0700 |
commit | 239c2540d6798b897944c7a719f27d61479e21cc (patch) | |
tree | 1e91ed87fd9feed4250c69daa53753b406034e55 | |
parent | c53d14014589e3ca40d56736f79311062dc2ece5 (diff) | |
download | infinitytier-239c2540d6798b897944c7a719f27d61479e21cc.tar.gz infinitytier-239c2540d6798b897944c7a719f27d61479e21cc.zip |
Mutex::lock and ::unlock just called themselves
-rw-r--r-- | node/Mutex.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/node/Mutex.hpp b/node/Mutex.hpp index b68e5d93..53ae05c4 100644 --- a/node/Mutex.hpp +++ b/node/Mutex.hpp @@ -177,6 +177,16 @@ public: DeleteCriticalSection(&_cs);
}
+ inline void lock()
+ {
+ EnterCriticalSection(&_cs);
+ }
+
+ inline void unlock()
+ {
+ LeaveCriticalSection(&_cs);
+ }
+
inline void lock() const
{
(const_cast <Mutex *> (this))->lock();
|