summaryrefslogtreecommitdiff
path: root/libs/ardour/graph.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-11-28 15:58:25 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-11-28 15:58:25 +0000
commiteee1151e555a268d78d76807330ba990b479338b (patch)
treec21a17ac8b7fce0103317daf66574e63c35ab92d /libs/ardour/graph.cc
parent1e97a0dcbea847a1581d9eeecbf2c1b4d86c8b19 (diff)
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
Diffstat (limited to 'libs/ardour/graph.cc')
-rw-r--r--libs/ardour/graph.cc20
1 files changed, 0 insertions, 20 deletions
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 ();