|
|
@ -86,7 +86,7 @@ bool threads_new_rt_cpu(pthread_t *thread, void *(*start_routine) (void*), void
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
// All threads have normal priority except prio_offset=0,1,2,3,4
|
|
|
|
// All threads have normal priority except prio_offset=0,1,2,3,4
|
|
|
|
if (prio_offset >= 0 && prio_offset < 5) {
|
|
|
|
if (prio_offset >= 0 && prio_offset < 5) {
|
|
|
|
param.sched_priority = 50;
|
|
|
|
param.sched_priority = 50-prio_offset;
|
|
|
|
pthread_attr_init(&attr);
|
|
|
|
pthread_attr_init(&attr);
|
|
|
|
if (pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED)) {
|
|
|
|
if (pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED)) {
|
|
|
|
perror("pthread_attr_setinheritsched");
|
|
|
|
perror("pthread_attr_setinheritsched");
|
|
|
|