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.
This commit is contained in:
Robin Gareus 2017-08-29 20:35:36 +02:00
parent df659e91f1
commit 467c801ce8
8 changed files with 23 additions and 9 deletions

View file

@ -859,7 +859,7 @@ CoreAudioBackend::create_process_thread (boost::function<void()> func)
ThreadData* td = new ThreadData (this, func, stacksize);
if (pbd_realtime_pthread_create (SCHED_FIFO, -22, stacksize,
if (pbd_realtime_pthread_create (PBD_SCHED_FIFO, -22, stacksize,
&thread_id, coreaudio_process_thread, td)) {
pthread_attr_init (&attr);
pthread_attr_setstacksize (&attr, stacksize);