56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
if (pthread_attr_getschedpolicy(&pattr, &policy) == 0) {
minPrio = sched_get_priority_min(policy);
maxPrio = sched_get_priority_max(policy);
if (minPrio == -1 || maxPrio == -1)
minPrio = maxPrio = 0;
}
if (pthread_attr_getschedparam(&pattr, ¶m) != 0)
normalPrio = param.sched_priority;
else
minPrio = maxPrio = 0;
pthread_attr_destroy(&pattr);
#endif
}
}
static void *
functionWrapper(void *data)
{
struct thread_ctx *ctx = data;
|
>
<
|
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
if (pthread_attr_getschedpolicy(&pattr, &policy) == 0) {
minPrio = sched_get_priority_min(policy);
maxPrio = sched_get_priority_max(policy);
if (minPrio == -1 || maxPrio == -1)
minPrio = maxPrio = 0;
}
#endif
if (pthread_attr_getschedparam(&pattr, ¶m) != 0)
normalPrio = param.sched_priority;
else
minPrio = maxPrio = 0;
pthread_attr_destroy(&pattr);
}
}
static void *
functionWrapper(void *data)
{
struct thread_ctx *ctx = data;
|