Reduce DSP thread priority (main-i/o > midi i/o > computation)
This commit is contained in:
@@ -1127,7 +1127,7 @@ AlsaAudioBackend::create_process_thread (boost::function<void()> func)
|
||||
|
||||
ThreadData* td = new ThreadData (this, func, stacksize);
|
||||
|
||||
if (_realtime_pthread_create (SCHED_FIFO, -21, stacksize,
|
||||
if (_realtime_pthread_create (SCHED_FIFO, -22, stacksize,
|
||||
&thread_id, alsa_process_thread, td)) {
|
||||
pthread_attr_init (&attr);
|
||||
pthread_attr_setstacksize (&attr, stacksize);
|
||||
|
||||
@@ -857,7 +857,7 @@ CoreAudioBackend::create_process_thread (boost::function<void()> func)
|
||||
|
||||
ThreadData* td = new ThreadData (this, func, stacksize);
|
||||
|
||||
if (_realtime_pthread_create (SCHED_FIFO, -21, stacksize,
|
||||
if (_realtime_pthread_create (SCHED_FIFO, -22, stacksize,
|
||||
&thread_id, coreaudio_process_thread, td)) {
|
||||
pthread_attr_init (&attr);
|
||||
pthread_attr_setstacksize (&attr, stacksize);
|
||||
|
||||
@@ -1104,7 +1104,7 @@ PortAudioBackend::create_process_thread (boost::function<void()> func)
|
||||
|
||||
ThreadData* td = new ThreadData (this, func, stacksize);
|
||||
|
||||
if (_realtime_pthread_create (SCHED_FIFO, -21, stacksize,
|
||||
if (_realtime_pthread_create (SCHED_FIFO, -22, stacksize,
|
||||
&thread_id, portaudio_process_thread, td)) {
|
||||
pthread_attr_init (&attr);
|
||||
pthread_attr_setstacksize (&attr, stacksize);
|
||||
|
||||
Reference in New Issue
Block a user