Adam Ierymenko преди 8 години
родител
ревизия
02ed84774c
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      node/Mutex.hpp

+ 2 - 2
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