diff options
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) |