diff options
-rw-r--r-- | node/Mutex.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Mutex.hpp b/node/Mutex.hpp index b16f53f7..b68e5d93 100644 --- a/node/Mutex.hpp +++ b/node/Mutex.hpp @@ -114,12 +114,12 @@ public: inline void lock() const
{
- (const_cast <Mutex *> (this))->lock();
+ pthread_mutex_lock(&((const_cast <Mutex *> (this))->_mh));
}
inline void unlock() const
{
- (const_cast <Mutex *> (this))->unlock();
+ pthread_mutex_unlock(&((const_cast <Mutex *> (this))->_mh));
}
class Lock : NonCopyable
|