Lines Matching refs:pthread
50 _pthread_setschedparam(pthread_t pthread, int policy, in _pthread_setschedparam() argument
53 struct pthread *curthread = _get_curthread(); in _pthread_setschedparam()
56 if (pthread == curthread) in _pthread_setschedparam()
58 else if ((ret = _thr_find_thread(curthread, pthread, in _pthread_setschedparam()
61 if (pthread->attr.sched_policy == policy && in _pthread_setschedparam()
63 pthread->attr.prio == param->sched_priority)) { in _pthread_setschedparam()
64 pthread->attr.prio = param->sched_priority; in _pthread_setschedparam()
65 THR_THREAD_UNLOCK(curthread, pthread); in _pthread_setschedparam()
68 ret = _thr_setscheduler(pthread->tid, policy, param); in _pthread_setschedparam()
72 pthread->attr.sched_policy = policy; in _pthread_setschedparam()
73 pthread->attr.prio = param->sched_priority; in _pthread_setschedparam()
75 THR_THREAD_UNLOCK(curthread, pthread); in _pthread_setschedparam()