Lines Matching refs:pol
64 my_policy_type_t pol;
99 thread_setup(my_policy_type_t pol)
103 switch (pol) {
110 thread_time_constraint_policy_data_t pol;
113 pol.period = 100000;
114 pol.constraint = CONSTRAINT_NANOS * g_mti.denom / g_mti.numer;
115 pol.computation = COMPUTATION_NANOS * g_mti.denom / g_mti.numer;
116 pol.preemptible = 0; /* Ignored by OS */
118 res = thread_policy_set(mach_thread_self(), THREAD_TIME_CONSTRAINT_POLICY, (thread_policy_t) &pol, THREAD_TIME_CONSTRAINT_POLICY_COUNT);
124 thread_extended_policy_data_t pol;
125 pol.timeshare = 0;
127 res = thread_policy_set(mach_thread_self(), THREAD_EXTENDED_POLICY, (thread_policy_t) &pol, THREAD_EXTENDED_POLICY_COUNT);
226 my_policy_type_t pol;
290 pol = parse_thread_policy(argv[0]);
335 secargs.pol = pol;
351 res = thread_setup(pol);
435 res = thread_setup(secargs->pol);