Lines Matching refs:prio
288 int create_thread(void *(*func) (void *), void *arg, int prio, int policy) in create_thread() argument
304 thread->priority = prio; in create_thread()
309 param.sched_priority = prio; in create_thread()
330 int create_fifo_thread(void *(*func) (void *), void *arg, int prio) in create_fifo_thread() argument
332 return create_thread(func, arg, prio, SCHED_FIFO); in create_fifo_thread()
335 int create_rr_thread(void *(*func) (void *), void *arg, int prio) in create_rr_thread() argument
337 return create_thread(func, arg, prio, SCHED_RR); in create_rr_thread()
345 int set_thread_priority(pthread_t pthread, int prio) in set_thread_priority() argument
348 sched_param.sched_priority = prio; in set_thread_priority()
351 policy = (prio > 0) ? SCHED_FIFO : SCHED_OTHER; in set_thread_priority()
356 int set_priority(int prio) in set_priority() argument
361 sp.sched_priority = prio; in set_priority()