Browse Source

Cleanup

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

+ 2
- 7
common/JackPosixThread.cpp View File

@@ -102,13 +102,8 @@ int JackPosixThread::StartImp(pthread_t* thread, int priority, int realtime, voi
jack_error("Cannot set FIFO scheduling class for RT thread %d %s", res, strerror(errno)); jack_error("Cannot set FIFO scheduling class for RT thread %d %s", res, strerror(errno));
return -1; return -1;
} }

if ((res = pthread_attr_setscope(&attributes, PTHREAD_SCOPE_SYSTEM))) {
jack_error("Cannot set scheduling scope for RT thread %d %s", res, strerror(errno));
return -1;
}
memset(&rt_param, 0, sizeof(rt_param));
memset(&rt_param, 0, sizeof(rt_param));
rt_param.sched_priority = priority; rt_param.sched_priority = priority;


if ((res = pthread_attr_setschedparam(&attributes, &rt_param))) { if ((res = pthread_attr_setschedparam(&attributes, &rt_param))) {


Loading…
Cancel
Save