mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-24 22:27:36 +01:00
Use Posix style return values for sem wait when on windows.
0 on success, -1 on error
This commit is contained in:
parent
be6d0fa95c
commit
1a1e67f595
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ Semaphore::wait ()
|
|||
{
|
||||
DWORD result = 0;
|
||||
result = WaitForSingleObject(_sem, INFINITE);
|
||||
return (result == WAIT_OBJECT_0);
|
||||
return (result == WAIT_OBJECT_0 ? 0 : -1);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue