summaryrefslogtreecommitdiffstats
path: root/raul/Semaphore.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-07-23 12:46:48 +0200
committerDavid Robillard <d@drobilla.net>2017-07-23 12:48:42 +0200
commit4db870b2b20b0a608ec0283139056b836c5b1624 (patch)
tree195c386a715c1973a28350c4f4a860994231c7da /raul/Semaphore.hpp
parent33282f15338051454dff690e0ba07b1fa3503a97 (diff)
downloadraul-4db870b2b20b0a608ec0283139056b836c5b1624.tar.gz
raul-4db870b2b20b0a608ec0283139056b836c5b1624.tar.bz2
raul-4db870b2b20b0a608ec0283139056b836c5b1624.zip
Fix semaphore with initial count on Darwin
Diffstat (limited to 'raul/Semaphore.hpp')
-rw-r--r--raul/Semaphore.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/raul/Semaphore.hpp b/raul/Semaphore.hpp
index 7edb973..31739d2 100644
--- a/raul/Semaphore.hpp
+++ b/raul/Semaphore.hpp
@@ -102,7 +102,7 @@ private:
inline bool
Semaphore::init(unsigned initial)
{
- if (semaphore_create(mach_task_self(), &_sem, SYNC_POLICY_FIFO, 0)) {
+ if (semaphore_create(mach_task_self(), &_sem, SYNC_POLICY_FIFO, initial)) {
return false;
}
return true;