From eee1151e555a268d78d76807330ba990b479338b Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 28 Nov 2011 15:58:25 +0000 Subject: remove get_rt() call from graph code, since JACK takes care of that for us and all process threads are created using libjack thread API git-svn-id: svn://localhost/ardour2/branches/3.0@10829 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/graph.cc | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'libs/ardour/graph.cc') diff --git a/libs/ardour/graph.cc b/libs/ardour/graph.cc index 7d75738e0b..1c1f784f41 100644 --- a/libs/ardour/graph.cc +++ b/libs/ardour/graph.cc @@ -407,24 +407,6 @@ Graph::run_one() return false; } -static void get_rt() -{ - if (!jack_is_realtime (AudioEngine::instance()->jack())) { - return; - } - - int priority = jack_client_real_time_priority (AudioEngine::instance()->jack()); - - if (priority) { - struct sched_param rtparam; - - memset (&rtparam, 0, sizeof (rtparam)); - rtparam.sched_priority = priority; - - pthread_setschedparam (pthread_self(), SCHED_FIFO, &rtparam); - } -} - void Graph::helper_thread() { @@ -433,7 +415,6 @@ Graph::helper_thread() resume_rt_malloc_checks (); pt->get_buffers(); - get_rt(); while(1) { if (run_one()) { @@ -453,7 +434,6 @@ Graph::main_thread() resume_rt_malloc_checks (); pt->get_buffers(); - get_rt(); again: _callback_start_sem.wait (); -- cgit v1.2.3