fixed windows compilation after b3972c3eb3de18cc9380b1419a923557ce4e96dc
authorLars Op den Kamp <lars@opdenkamp.eu>
Fri, 28 Sep 2012 09:48:10 +0000 (11:48 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Fri, 28 Sep 2012 09:48:10 +0000 (11:48 +0200)
src/lib/platform/windows/os-threads.h

index 091e962faf39bfb46303d3b81acc61ecc6b60c99..f696ff798717bc304a91ebf9cdd17ed6f52db98e 100644 (file)
@@ -43,7 +43,7 @@ namespace PLATFORM
   typedef CRITICAL_SECTION* mutex_t;
   #define MutexCreate(mutex)                       ::InitializeCriticalSection(mutex = new CRITICAL_SECTION)
   #define MutexDelete(mutex)                       ::DeleteCriticalSection(mutex); delete mutex
-  #define MutexLock(mutex)                         ::EnterCriticalSection(mutex)
+  inline bool MutexLock(mutex_t mutex)             {::EnterCriticalSection(mutex); return true; }
   #define MutexTryLock(mutex)                      (::TryEnterCriticalSection(mutex) != 0)
   #define MutexUnlock(mutex)                       ::LeaveCriticalSection(mutex)