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/ardour/automation_watch.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/ardour/automation_watch.cc')
-rw-r--r-- | libs/ardour/automation_watch.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/automation_watch.cc b/libs/ardour/automation_watch.cc index c949509d09..ad05f3ac69 100644 --- a/libs/ardour/automation_watch.cc +++ b/libs/ardour/automation_watch.cc @@ -186,7 +186,7 @@ AutomationWatch::timer () void AutomationWatch::thread () { - pbd_set_thread_priority (pthread_self(), SCHED_FIFO, -25); + pbd_set_thread_priority (pthread_self(), PBD_SCHED_FIFO, -25); while (_run_thread) { Glib::usleep ((gulong) floor (Config->get_automation_interval_msecs() * 1000)); timer (); |