From 02d4ad12a6bab744636f594600758a9fb5aa9c79 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 4 Sep 2008 10:24:02 +0000 Subject: fix posix mutexes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10382 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/threadengines/threadengine_pthread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/threadengines') diff --git a/src/threadengines/threadengine_pthread.cpp b/src/threadengines/threadengine_pthread.cpp index 626cd4d55..a1993af45 100644 --- a/src/threadengines/threadengine_pthread.cpp +++ b/src/threadengines/threadengine_pthread.cpp @@ -116,12 +116,12 @@ Mutex* MutexEngine::CreateMutex() PosixMutex::PosixMutex(InspIRCd* Instance) : Mutex(Instance) { - InitializeCriticalSection(&putex); + pthread_mutex_init(&putex, NULL); } PosixMutex::~PosixMutex() { - DeleteCriticalSection(&putex); + pthread_mutex_destroy(&putex); } void PosixMutex::Enable(bool enable) -- cgit v1.2.3