diff options
author | Robin Gareus <robin@gareus.org> | 2017-08-29 20:35:36 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-29 20:35:36 +0200 |
commit | 467c801ce80b69abdb7efb4c23120532bed3fc96 (patch) | |
tree | e0ed5e4592819392a5f37d6a8c44003dd96daf0f /libs/backends/alsa/alsa_midi.cc | |
parent | df659e91f1ad8b5d71838abc130dce8eacdf7cc1 (diff) |
Abstract definition of rt-scheduler policy
pthread-w32 does not support pthread_setschedparam() with
SCHED_FIFO and bails out. While pthread_create() simply ignores the policy
and sets the priority regadless.
This only affects ctrl-surface event-loops & AutomationWatch on Windows.
Diffstat (limited to 'libs/backends/alsa/alsa_midi.cc')
-rw-r--r-- | libs/backends/alsa/alsa_midi.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/backends/alsa/alsa_midi.cc b/libs/backends/alsa/alsa_midi.cc index 348586ad20..d593f73def 100644 --- a/libs/backends/alsa/alsa_midi.cc +++ b/libs/backends/alsa/alsa_midi.cc @@ -72,7 +72,7 @@ static void * pthread_process (void *arg) int AlsaMidiIO::start () { - if (pbd_realtime_pthread_create (SCHED_FIFO, -21, 100000, + if (pbd_realtime_pthread_create (PBD_SCHED_FIFO, -21, 100000, &_main_thread, pthread_process, this)) { if (pthread_create (&_main_thread, NULL, pthread_process, this)) { |