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
pull/355/head
James Thomas 7 years ago
parent
commit
bca17b2a5d
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