diff options
Diffstat (limited to 'raul')
-rw-r--r-- | raul/Semaphore.hpp | 2 |
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; |