From 8e2f6b9e0f1045beff3ab26d848a88afdd5c56e6 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 16 Nov 2010 19:47:38 +0000 Subject: handle OS X's lack of unnamed semaphores, phase 1 git-svn-id: svn://localhost/ardour2/branches/3.0@8049 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/graph.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'libs/ardour/ardour/graph.h') diff --git a/libs/ardour/ardour/graph.h b/libs/ardour/ardour/graph.h index 56267672b7..bb51c99237 100644 --- a/libs/ardour/ardour/graph.h +++ b/libs/ardour/ardour/graph.h @@ -32,7 +32,8 @@ #include #include -#include + +#include "pbd/semutils.h" #include "ardour/types.h" #include "ardour/session_handle.h" @@ -97,10 +98,11 @@ class Graph : public SessionHandleRef std::vector _trigger_queue; pthread_mutex_t _trigger_mutex; - sem_t _execution_sem; - sem_t _callback_start_sem; - sem_t _callback_done_sem; - sem_t _cleanup_sem; + PBD::ProcessSemaphore _execution_sem; + + PBD::ProcessSemaphore _callback_start_sem; + PBD::ProcessSemaphore _callback_done_sem; + PBD::ProcessSemaphore _cleanup_sem; volatile gint _execution_tokens; volatile gint _finished_refcount; -- cgit v1.2.3