summaryrefslogtreecommitdiff
path: root/libs/backends/alsa/alsa_midi.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-08-29 20:35:36 +0200
committerRobin Gareus <robin@gareus.org>2017-08-29 20:35:36 +0200
commit467c801ce80b69abdb7efb4c23120532bed3fc96 (patch)
treee0ed5e4592819392a5f37d6a8c44003dd96daf0f /libs/backends/alsa/alsa_midi.cc
parentdf659e91f1ad8b5d71838abc130dce8eacdf7cc1 (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.cc2
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)) {