summaryrefslogtreecommitdiffstats
path: root/zix
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-12-18 22:08:50 +0000
committerDavid Robillard <d@drobilla.net>2014-12-18 22:08:50 +0000
commitc2c30ec15d1f37fd2ca88021f8a9a8055f5fca7f (patch)
tree9a6c912193f4f176bc89202ea54a774061a31155 /zix
parent1fbfef14c375455eef547558cc68beae0151dc7c (diff)
downloadzix-c2c30ec15d1f37fd2ca88021f8a9a8055f5fca7f.tar.gz
zix-c2c30ec15d1f37fd2ca88021f8a9a8055f5fca7f.tar.bz2
zix-c2c30ec15d1f37fd2ca88021f8a9a8055f5fca7f.zip
Fix semaphore on OSX.
git-svn-id: http://svn.drobilla.net/zix/trunk@102 df6676b4-ccc9-40e5-b5d6-7c4628a128e3
Diffstat (limited to 'zix')
-rw-r--r--zix/sem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/zix/sem.h b/zix/sem.h
index a7cb826..1fea796 100644
--- a/zix/sem.h
+++ b/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;
}