Sfoglia il codice sorgente

Mutex::lock and ::unlock just called themselves

Grant Limberg 8 anni fa
parent
commit
239c2540d6
1 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  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();