Lines Matching refs:policy
101 int rc, i, j, policy, tid = gettid(); in func_nonrt() local
117 pthread_getschedparam(pthr->pthread, &policy, &schedp); in func_nonrt()
124 pthr->priority, policy, schedp.sched_priority); in func_nonrt()
129 policy = sched_getscheduler(tid); in func_nonrt()
132 policy, schedp.sched_priority); in func_nonrt()
150 int rc, i, j, policy, tid = gettid(); in func_rt() local
166 pthread_getschedparam(pthr->pthread, &policy, &schedp); in func_rt()
174 pthr->priority, policy, schedp.sched_priority); in func_rt()
184 policy = sched_getscheduler(tid); in func_rt()
187 tid, pthr->priority, i, policy, in func_rt()
206 int rc, i, j, policy, tid = gettid(); in func_noise() local
222 pthread_getschedparam(pthr->pthread, &policy, &schedp); in func_noise()
231 policy = sched_getscheduler(tid); in func_noise()
234 tid, pthr->priority, i, policy, in func_noise()
253 int retc, policy, inherit; in startThread() local
263 policy = thrd->policy; in startThread()
265 if (pthread_attr_setschedpolicy(&(thrd->attr), policy) != 0) { in startThread()
266 printf("Can't set policy %d\n", policy); in startThread()
268 if (pthread_attr_getschedpolicy(&(thrd->attr), &policy) != 0) { in startThread()
271 printf("Policy in attribs is %d\n", policy); in startThread()
345 arg1.policy = SCHED_OTHER; in main()
348 arg2.policy = SCHED_RR; in main()
351 arg3.policy = SCHED_RR; in main()
354 arg4.policy = SCHED_RR; in main()
357 arg5.policy = SCHED_RR; in main()