Lines Matching refs:pthread
53 _pthread_setschedparam(pthread_t pthread, int policy, in _pthread_setschedparam() argument
56 struct pthread *curthread = _get_curthread(); in _pthread_setschedparam()
59 if (pthread == curthread) in _pthread_setschedparam()
61 else if ((ret = _thr_find_thread(curthread, pthread, in _pthread_setschedparam()
64 if (pthread->attr.sched_policy == policy && in _pthread_setschedparam()
66 pthread->attr.prio == param->sched_priority)) { in _pthread_setschedparam()
67 pthread->attr.prio = param->sched_priority; in _pthread_setschedparam()
68 THR_THREAD_UNLOCK(curthread, pthread); in _pthread_setschedparam()
71 ret = _thr_setscheduler(pthread->tid, policy, param); in _pthread_setschedparam()
75 pthread->attr.sched_policy = policy; in _pthread_setschedparam()
76 pthread->attr.prio = param->sched_priority; in _pthread_setschedparam()
78 THR_THREAD_UNLOCK(curthread, pthread); in _pthread_setschedparam()