summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd/semaphore.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/pbd/pbd/semaphore.h')
-rw-r--r--libs/pbd/pbd/semaphore.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/pbd/pbd/semaphore.h b/libs/pbd/pbd/semaphore.h
index f1b07ea4f5..51e0ae409d 100644
--- a/libs/pbd/pbd/semaphore.h
+++ b/libs/pbd/pbd/semaphore.h
@@ -81,7 +81,7 @@ private:
inline
Semaphore::Semaphore(unsigned initial)
{
- if (semaphore_create(mach_task_self(), &sem->sem, SYNC_POLICY_FIFO, 0)) {
+ if (semaphore_create(mach_task_self(), &_sem, SYNC_POLICY_FIFO, initial)) {
throw failed_constructor();
}
}