summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--node/Mutex.hpp10
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();