diff --git a/node/Mutex.hpp b/node/Mutex.hpp index b16f53f76..b68e5d935 100644 --- a/node/Mutex.hpp +++ b/node/Mutex.hpp @@ -114,12 +114,12 @@ public: inline void lock() const { - (const_cast (this))->lock(); + pthread_mutex_lock(&((const_cast (this))->_mh)); } inline void unlock() const { - (const_cast (this))->unlock(); + pthread_mutex_unlock(&((const_cast (this))->_mh)); } class Lock : NonCopyable