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/ardour/midi_ui.cc | |
parent | 8374e23014f2254c7de23cf6f0e09e7dabd5303f (diff) |
Consolidate ctrl surface code
Diffstat (limited to 'libs/ardour/midi_ui.cc')
-rw-r--r-- | libs/ardour/midi_ui.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libs/ardour/midi_ui.cc b/libs/ardour/midi_ui.cc index eaacde2969..11ab77a851 100644 --- a/libs/ardour/midi_ui.cc +++ b/libs/ardour/midi_ui.cc @@ -144,19 +144,12 @@ MidiControlUI::reset_ports () void MidiControlUI::thread_init () { - struct sched_param rtparam; - pthread_set_name (X_("midiUI")); PBD::notify_event_loops_about_thread_creation (pthread_self(), X_("midiUI"), 2048); SessionEvent::create_per_thread_pool (X_("midiUI"), 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 (); reset_ports (); } |