2 #cc: additional_flags=-pthread
5 A sanity check for syscalls resulting from
6 pthread_getschedparam and pthread_setschedparam. */
14 struct sched_param param
;
17 if (pthread_getschedparam (pthread_self (), &policy
, ¶m
) != 0
18 || policy
!= SCHED_OTHER
19 || param
.sched_priority
!= 0)
22 if (pthread_setschedparam (pthread_self (), SCHED_OTHER
, ¶m
) != 0
23 || param
.sched_priority
!= 0)
This page took 0.032428 seconds and 4 git commands to generate.