diff options
author | David Robillard <d@drobilla.net> | 2014-12-18 21:59:34 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-12-18 21:59:34 +0000 |
commit | a1d4c3d28da0936df992b4c46011ee0c1e11d7dc (patch) | |
tree | 6b4b21685aa24ff5a1c0b049962380edb2a6cd9e /src | |
parent | 16e63b592f39bb3775577b0571fc6343df3e621e (diff) | |
download | jalv-a1d4c3d28da0936df992b4c46011ee0c1e11d7dc.tar.gz jalv-a1d4c3d28da0936df992b4c46011ee0c1e11d7dc.tar.bz2 jalv-a1d4c3d28da0936df992b4c46011ee0c1e11d7dc.zip |
Fix semaphore on OSX.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@5502 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/zix/sem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zix/sem.h b/src/zix/sem.h index a7cb826..1fea796 100644 --- a/src/zix/sem.h +++ b/src/zix/sem.h @@ -104,9 +104,9 @@ struct ZixSemImpl { }; static inline ZixStatus -zix_sem_init(ZixSem* sem, unsigned initial) +zix_sem_init(ZixSem* sem, unsigned val) { - return semaphore_create(mach_task_self(), &sem->sem, SYNC_POLICY_FIFO, 0) + return semaphore_create(mach_task_self(), &sem->sem, SYNC_POLICY_FIFO, val) ? ZIX_STATUS_ERROR : ZIX_STATUS_SUCCESS; } |