Browse Source

Compiles on Windows again.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@3906 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/v1.9.5
sletz 16 years ago
parent
commit
98431deea5
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      windows/JackWinMutex.h

+ 5
- 5
windows/JackWinMutex.h View File

@@ -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);
}

};


Loading…
Cancel
Save