Browse Source

Mutex::lock and ::unlock just called themselves

Grant Limberg 7 years ago
parent
commit
239c2540d6
1 changed files with 10 additions and 0 deletions
  1. 10 0
      node/Mutex.hpp

+ 10 - 0
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();