Commit 98431dee authored by sletz's avatar sletz
Browse files

Compiles on Windows again.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3906 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 8bac53fa
......@@ -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);
}
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment