diff options
-rw-r--r-- | NEWS | 5 | ||||
-rw-r--r-- | src/zix/sem.h | 2 |
2 files changed, 4 insertions, 3 deletions
@@ -1,8 +1,9 @@ jalv (1.4.7) unstable; - * Exit on jack shutdown + * Exit on jack shutdown (Patch from Robin Gareus) + * Fix semaphore try_wait on windows (Patch from Robin Gareus) - -- David Robillard <d@drobilla.net> Fri, 26 Sep 2014 22:36:07 -0400 + -- David Robillard <d@drobilla.net> Sun, 28 Sep 2014 13:13:02 -0400 jalv (1.4.6) stable; diff --git a/src/zix/sem.h b/src/zix/sem.h index 6a6dc8e..62f49f0 100644 --- a/src/zix/sem.h +++ b/src/zix/sem.h @@ -168,7 +168,7 @@ zix_sem_wait(ZixSem* sem) static inline bool zix_sem_try_wait(ZixSem* sem) { - WaitForSingleObject(sem->sem, 0); + return WaitForSingleObject(sem->sem, 0) == WAIT_OBJECT_0; } #else /* !defined(__APPLE__) && !defined(_WIN32) */ |