From eb79e443daf95cbf0aa98cdc60c58cebe67d2780 Mon Sep 17 00:00:00 2001 From: abma Date: Fri, 13 Feb 2015 22:58:01 +0100 Subject: [PATCH] fix compile with undefined STDTHREAD_STRICT_NONRECURSIVE_LOCKS --- mingw.mutex.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mingw.mutex.h b/mingw.mutex.h index a5fdecd..869378c 100644 --- a/mingw.mutex.h +++ b/mingw.mutex.h @@ -78,6 +78,7 @@ class _NonRecursiveMutex: protected B #endif } protected: +#ifdef STDTHREAD_STRICT_NONRECURSIVE_LOCKS void checkSetOwnerAfterLock() { DWORD self = GetCurrentThreadId(); @@ -100,6 +101,7 @@ class _NonRecursiveMutex: protected B } mOwnerThread = 0; } +#endif public: void unlock() {