Lines Matching refs:TH_MODE_TIMESHARE
84 integer_t oldmode = (thread->sched_mode & TH_MODE_TIMESHARE);
89 thread->sched_mode |= TH_MODE_TIMESHARE;
96 thread->sched_mode &= ~TH_MODE_TIMESHARE;
108 thread->safe_mode |= TH_MODE_TIMESHARE;
110 thread->safe_mode &= ~TH_MODE_TIMESHARE;
145 if (thread->sched_mode & TH_MODE_TIMESHARE) {
146 thread->sched_mode &= ~TH_MODE_TIMESHARE;
155 thread->safe_mode &= ~TH_MODE_TIMESHARE;
285 if (!(thread->sched_mode & TH_MODE_TIMESHARE)) {
286 thread->sched_mode |= TH_MODE_TIMESHARE;
339 timeshare = (thread->sched_mode & TH_MODE_TIMESHARE) != 0;
341 timeshare = (thread->safe_mode & TH_MODE_TIMESHARE) != 0;