diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-24 18:42:35 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-24 18:42:35 +0000 |
commit | 5f8f96e0b6ed20f01dcda78e19e6fb1168d27f5f (patch) | |
tree | 8b4ea5ad3e1014852049eaad8305418fbba29ed7 /src/threadengines | |
parent | 3dcfddf9654975a46f4356a7cb2ddec747097068 (diff) |
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
Diffstat (limited to 'src/threadengines')
-rw-r--r-- | src/threadengines/threadengine_pthread.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |