From 467c801ce80b69abdb7efb4c23120532bed3fc96 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 29 Aug 2017 20:35:36 +0200 Subject: 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. --- libs/ardour/automation_watch.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ardour/automation_watch.cc') 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 (); -- cgit v1.2.3