summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-04 10:24:02 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-04 10:24:02 +0000
commit02d4ad12a6bab744636f594600758a9fb5aa9c79 (patch)
tree27350789ae21793292a1989e193687fca93c961d
parentedd35ae3af70075e0d59b6409f6d206c6c08d85b (diff)
fix posix mutexes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10382 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/threadengines/threadengine_pthread.cpp4
1 files changed, 2 insertions, 2 deletions
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)