Browse Source

Use PTHREAD_EXPLICIT_SCHED for non RT threads

This prevents jack control threads from inheriting RT priorities from
other applications that may be using this in another RT thread
tags/v1.9.13
James Thomas Filipe Coelho <falktx@falktx.com> 6 years ago
parent
commit
d80de6c81a
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      posix/JackPosixThread.cpp

+ 3
- 0
posix/JackPosixThread.cpp View File

@@ -134,6 +134,9 @@ int JackPosixThread::StartImp(jack_native_thread_t* thread, int priority, int re

} else {
jack_log("JackPosixThread::StartImp : create non RT thread");
if ((res = pthread_attr_setinheritsched(&attributes, PTHREAD_EXPLICIT_SCHED))) {
jack_log("Cannot request explicit scheduling for non RT thread res = %d", res);
}
}

if ((res = pthread_attr_setstacksize(&attributes, THREAD_STACK))) {


Loading…
Cancel
Save