Use Posix style return values for sem wait when on windows.
0 on success, -1 on error
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user