Browse Source

Cleanup

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@1885 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/0.71
sletz 17 years ago
parent
commit
a333a9ed5e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      common/JackPosixThread.cpp

+ 2
- 2
common/JackPosixThread.cpp View File

@@ -99,7 +99,7 @@ int JackPosixThread::StartImp(pthread_t* thread, int priority, int realtime, voi
//if ((res = pthread_attr_setschedpolicy(&attributes, SCHED_FIFO))) {

if ((res = pthread_attr_setschedpolicy(&attributes, SCHED_RR))) {
jack_error("Cannot set FIFO scheduling class for RT thread %d %s", res, strerror(errno));
jack_error("Cannot set RR scheduling class for RT thread %d %s", res, strerror(errno));
return -1;
}
@@ -189,7 +189,7 @@ int JackPosixThread::AcquireRealTimeImp(pthread_t thread, int priority)
//if ((res = pthread_setschedparam(fThread, SCHED_FIFO, &rtparam)) != 0) {

if ((res = pthread_setschedparam(thread, SCHED_RR, &rtparam)) != 0) {
jack_error("Cannot use real-time scheduling (FIFO/%d) "
jack_error("Cannot use real-time scheduling (RR/%d) "
"(%d: %s)", rtparam.sched_priority, res,
strerror(res));
return -1;


Loading…
Cancel
Save