diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-04 10:24:02 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-04 10:24:02 +0000 |
commit | 02d4ad12a6bab744636f594600758a9fb5aa9c79 (patch) | |
tree | 27350789ae21793292a1989e193687fca93c961d /src/threadengines | |
parent | edd35ae3af70075e0d59b6409f6d206c6c08d85b (diff) |
fix posix mutexes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10382 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/threadengines')
-rw-r--r-- | src/threadengines/threadengine_pthread.cpp | 4 |
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) |