Explorar o código

Non-x86 build fix.

Adam Ierymenko %!s(int64=8) %!d(string=hai) anos
pai
achega
02ed84774c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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