Lines Matching refs:pd
28 struct pthread *pd = (struct pthread *) threadid; in __pthread_getschedparam() local
31 if (INVALID_TD_P (pd)) in __pthread_getschedparam()
38 lll_lock (pd->lock, LLL_PRIVATE); in __pthread_getschedparam()
45 if ((pd->flags & ATTR_FLAG_SCHED_SET) == 0) in __pthread_getschedparam()
47 if (__sched_getparam (pd->tid, &pd->schedparam) != 0) in __pthread_getschedparam()
50 pd->flags |= ATTR_FLAG_SCHED_SET; in __pthread_getschedparam()
53 if ((pd->flags & ATTR_FLAG_POLICY_SET) == 0) in __pthread_getschedparam()
55 pd->schedpolicy = __sched_getscheduler (pd->tid); in __pthread_getschedparam()
56 if (pd->schedpolicy == -1) in __pthread_getschedparam()
59 pd->flags |= ATTR_FLAG_POLICY_SET; in __pthread_getschedparam()
64 *policy = pd->schedpolicy; in __pthread_getschedparam()
65 memcpy (param, &pd->schedparam, sizeof (struct sched_param)); in __pthread_getschedparam()
68 lll_unlock (pd->lock, LLL_PRIVATE); in __pthread_getschedparam()