Lines Matching refs:iPolicy
62 int iPolicy = 0;
69 rc = pthread_getschedparam(pthread_self(), &iPolicy, &Param);
70 printf("pthread_getschedparam: rc=%d iPolicy=%d (%#x) sched_priority=%d (%#x) opaque=%d (%#x)\n",
71 rc, iPolicy, iPolicy, Param.sched_priority, Param.sched_priority,
133 int iPolicy;
146 iPolicy = SCHED_OTHER;
148 pthread_getschedparam(pthread_self(), &iPolicy, &Param);
149 Param.sched_priority = iPriority = sched_get_priority_max(iPolicy);
150 rc = pthread_setschedparam(pthread_self(), iPolicy, &Param);
156 rc = pthread_setschedparam(pthread_self(), iPolicy, &Param);
162 iPriority, sched_get_priority_max(iPolicy), rc);
168 iPolicy = SCHED_OTHER;
170 pthread_getschedparam(pthread_self(), &iPolicy, &Param);
171 Param.sched_priority = iPriority = sched_get_priority_min(iPolicy);
172 rc = pthread_setschedparam(pthread_self(), iPolicy, &Param);
178 rc = pthread_setschedparam(pthread_self(), iPolicy, &Param);
184 iPriority, sched_get_priority_min(iPolicy), rc);