소스 검색

Mutex::lock and ::unlock just called themselves

Grant Limberg 7 년 전
부모
커밋
239c2540d6
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  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();