From 98431deea5854698f72e03fe4b1ff39f776f6828 Mon Sep 17 00:00:00 2001 From: sletz Date: Thu, 11 Feb 2010 15:45:34 +0000 Subject: [PATCH] Compiles on Windows again. git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3906 0c269be4-1314-0410-8aa9-9f06e86f4224 --- windows/JackWinMutex.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/windows/JackWinMutex.h b/windows/JackWinMutex.h index 422752b6..55434ace 100644 --- a/windows/JackWinMutex.h +++ b/windows/JackWinMutex.h @@ -43,15 +43,15 @@ class JackWinMutex // In recursive mode by default fMutex = (HANDLE)CreateMutex(0, FALSE, 0); } - + virtual ~JackWinMutex() { CloseHandle(fMutex); } - void Lock() + bool Lock() { - WaitForSingleObject(fMutex, INFINITE); + return (WAIT_OBJECT_0 == WaitForSingleObject(fMutex, INFINITE)); } bool Trylock() @@ -59,9 +59,9 @@ class JackWinMutex return (WAIT_OBJECT_0 == WaitForSingleObject(fMutex, 0)); } - void Unlock() + bool Unlock() { - ReleaseMutex(fMutex); + return(ReleaseMutex(fMutex) != 0); } };