From e72d710734f6371cb2653ad67c862d941e5cc173 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 24 Jun 2010 18:04:02 +0000 Subject: use condvar and exception-proof mutex for chain swaps in graph git-svn-id: svn://localhost/ardour2/branches/3.0@7299 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/graph.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/ardour/ardour') diff --git a/libs/ardour/ardour/graph.h b/libs/ardour/ardour/graph.h index a6863fc86b..ec906455fe 100644 --- a/libs/ardour/ardour/graph.h +++ b/libs/ardour/ardour/graph.h @@ -109,7 +109,8 @@ class Graph : public SessionHandleRef bool _graph_empty; // chain swapping - pthread_mutex_t _swap_mutex; + Glib::Mutex _swap_mutex; + Glib::Cond _cleanup_cond; volatile int _current_chain; volatile int _pending_chain; volatile int _setup_chain; -- cgit v1.2.3