diff options
author | Robin Gareus <robin@gareus.org> | 2017-08-05 01:27:41 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-05 01:28:11 +0200 |
commit | 2d60a69c2d3e1efa8fa4e5bdff151f1923f1aec7 (patch) | |
tree | bcc116ae4786ac3ba04bf909d9cc7c99ecd70746 /libs/surfaces/cc121 | |
parent | 8374e23014f2254c7de23cf6f0e09e7dabd5303f (diff) |
Consolidate ctrl surface code
Diffstat (limited to 'libs/surfaces/cc121')
-rw-r--r-- | libs/surfaces/cc121/cc121.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libs/surfaces/cc121/cc121.cc b/libs/surfaces/cc121/cc121.cc index b00fbbb541..8a8cfb6597 100644 --- a/libs/surfaces/cc121/cc121.cc +++ b/libs/surfaces/cc121/cc121.cc @@ -268,19 +268,12 @@ CC121::stop () void CC121::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 (); } void |