mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
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:
parent
df659e91f1
commit
467c801ce8
8 changed files with 23 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue