add API to get current MIDI option from an audio/MIDI backend
[ardour.git] / libs / ardour / ardour / graph.h
index f1ebba698a70b05205b5cb3bd2f64207166e7bd4..763723c792eb4e0dda2653c7b86fec5f45bec71a 100644 (file)
 
 #include <boost/shared_ptr.hpp>
 
-#include <glib/gatomic.h>
+#include <glib.h>
 #include <cassert>
 
-#include <pthread.h>
-
 #include "pbd/semutils.h"
 
 #include "ardour/types.h"
+#include "ardour/audio_backend.h"
 #include "ardour/session_handle.h"
 
 namespace ARDOUR
@@ -58,8 +57,6 @@ class Graph : public SessionHandleRef
 public:
        Graph (Session & session);
 
-       uint32_t threads_in_use () const { return _thread_list.size(); }
-
        void prep();
        void trigger (GraphNode * n);
        void rechain (boost::shared_ptr<RouteList>, GraphEdges const &);
@@ -92,11 +89,8 @@ protected:
        virtual void session_going_away ();
 
 private:
-       std::list<pthread_t> _thread_list;
        volatile bool        _quit_threads;
-       PBD::ScopedConnection processor_usage_connection;
 
-       void parameter_changed (std::string);
        void reset_thread_list ();
        void drop_threads ();
 
@@ -124,8 +118,8 @@ private:
        bool _graph_empty;
 
        // chain swapping
-       Glib::Mutex  _swap_mutex;
-       Glib::Cond   _cleanup_cond;
+       Glib::Threads::Mutex  _swap_mutex;
+        Glib::Threads::Cond   _cleanup_cond;
        volatile int _current_chain;
        volatile int _pending_chain;
        volatile int _setup_chain;