Lines Matching defs:pthread
37 #include <pthread.h>
44 _pthread_getschedparam(pthread_t pthread, int *policy,
47 struct pthread *curthread = _get_curthread();
53 else if (pthread == curthread) {
60 THR_BASE_PRIORITY(pthread->base_priority);
61 tmp = pthread->attr.sched_policy;
67 else if ((ret = _thr_ref_add(curthread, pthread, /*include dead*/0))
69 THR_SCHED_LOCK(curthread, pthread);
71 THR_BASE_PRIORITY(pthread->base_priority);
72 tmp = pthread->attr.sched_policy;
73 THR_SCHED_UNLOCK(curthread, pthread);
74 _thr_ref_delete(curthread, pthread);