diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-11-16 19:47:38 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-11-16 19:47:38 +0000 |
commit | 8e2f6b9e0f1045beff3ab26d848a88afdd5c56e6 (patch) | |
tree | c3025aba52cabd745697b271e57dd2d4ff31a375 /libs/ardour/ardour/graph.h | |
parent | 8fc660e76e50920d744942c241275849b7b9720e (diff) |
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
Diffstat (limited to 'libs/ardour/ardour/graph.h')
-rw-r--r-- | libs/ardour/ardour/graph.h | 12 |
1 files changed, 7 insertions, 5 deletions
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 <cassert> #include <pthread.h> -#include <semaphore.h> + +#include "pbd/semutils.h" #include "ardour/types.h" #include "ardour/session_handle.h" @@ -97,10 +98,11 @@ class Graph : public SessionHandleRef std::vector<GraphNode *> _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; |