From 239c2540d6798b897944c7a719f27d61479e21cc Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Wed, 27 Sep 2017 15:05:13 -0700 Subject: [PATCH] Mutex::lock and ::unlock just called themselves --- node/Mutex.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/node/Mutex.hpp b/node/Mutex.hpp index b68e5d935..53ae05c4c 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 (this))->lock();