From 2d60a69c2d3e1efa8fa4e5bdff151f1923f1aec7 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 5 Aug 2017 01:27:41 +0200 Subject: Consolidate ctrl surface code --- libs/surfaces/faderport8/faderport8.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'libs/surfaces/faderport8/faderport8.cc') diff --git a/libs/surfaces/faderport8/faderport8.cc b/libs/surfaces/faderport8/faderport8.cc index 9b35578255..0ba8ae422a 100644 --- a/libs/surfaces/faderport8/faderport8.cc +++ b/libs/surfaces/faderport8/faderport8.cc @@ -210,19 +210,12 @@ FaderPort8::stop () void FaderPort8::thread_init () { - struct sched_param rtparam; - pthread_set_name (event_loop_name().c_str()); PBD::notify_event_loops_about_thread_creation (pthread_self(), event_loop_name(), 2048); ARDOUR::SessionEvent::create_per_thread_pool (event_loop_name(), 128); - memset (&rtparam, 0, sizeof (rtparam)); - rtparam.sched_priority = 9; /* XXX should be relative to audio (JACK) thread */ - - if (pthread_setschedparam (pthread_self(), SCHED_FIFO, &rtparam) != 0) { - // do we care? not particularly. - } + set_thread_priority (); } bool -- cgit v1.2.3