From 5f8f96e0b6ed20f01dcda78e19e6fb1168d27f5f Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 24 Feb 2008 18:42:35 +0000 Subject: Add mutexes to this to make it a bit more threadsafe git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9025 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/threadengines/threadengine_pthread.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/threadengines') diff --git a/src/threadengines/threadengine_pthread.cpp b/src/threadengines/threadengine_pthread.cpp index 2f09cc305..3921622ff 100644 --- a/src/threadengines/threadengine_pthread.cpp +++ b/src/threadengines/threadengine_pthread.cpp @@ -82,6 +82,8 @@ bool PThreadEngine::Mutex(bool enable) else pthread_mutex_unlock(&MyMutex); + printf("OK! Mutex %s\n", enable ? "on" : "off"); + return false; } -- cgit v1.2.3