Lines Matching defs:new_thread

1633 	thread_t			new_thread = THREAD_NULL;
1696 (new_thread = SCHED(choose_thread)(processor, thread->sched_mode == TH_MODE_FAIRSHARE ? MINPRI : thread->sched_pri)) == THREAD_NULL) {
1714 if (new_thread != THREAD_NULL ||
1716 (new_thread = SCHED(choose_thread)(processor, MINPRI)) != THREAD_NULL)) {
1720 pset_pri_hint(pset, processor, new_thread->sched_pri);
1728 return (new_thread);
1751 if ((new_thread = SCHED(fairshare_dequeue)()) != THREAD_NULL) {
1756 return (new_thread);
1783 new_thread = SCHED(steal_thread)(pset);
1784 if (new_thread != THREAD_NULL) {
1785 return (new_thread);
1831 new_thread = thread_select_idle(thread, processor);
1844 } while (new_thread == THREAD_NULL);
1846 return (new_thread);
1862 thread_t new_thread;
1899 spllo(); new_thread = processor_idle(thread, processor);
1950 return (new_thread);
2526 register thread_t new_thread;
2556 new_thread = thread_select(self, processor);
2558 } while (!thread_invoke(self, new_thread, reason));
2601 thread_t new_thread)
2610 while (!thread_invoke(self, new_thread, handoff)) {
2614 new_thread = thread_select(self, processor);
4075 thread_t new_thread;
4120 new_thread = processor->next_thread;
4124 if (SCHED(processor_queue_has_priority)(processor, new_thread->sched_pri, FALSE) ||
4125 (rt_runq.count > 0 && BASEPRI_RTQUEUES >= new_thread->sched_pri) ) {
4130 thread_lock(new_thread);
4131 KERNEL_DEBUG_CONSTANT(MACHDBG_CODE(DBG_MACH_SCHED, MACH_REDISPATCH), (uintptr_t)thread_tid(new_thread), new_thread->sched_pri, rt_runq.count, 0, 0);
4132 thread_setrun(new_thread, SCHED_HEADQ);
4133 thread_unlock(new_thread);
4146 (uintptr_t)thread_tid(thread), state, (uintptr_t)thread_tid(new_thread), 0, 0);
4148 return (new_thread);
4168 if ((new_thread = processor->next_thread) != THREAD_NULL) {
4174 thread_lock(new_thread);
4175 thread_setrun(new_thread, SCHED_HEADQ);
4176 thread_unlock(new_thread);
4204 thread_t new_thread;
4206 new_thread = processor_idle(THREAD_NULL, processor);
4207 if (new_thread != THREAD_NULL) {
4208 thread_run(processor->idle_thread, (thread_continue_t)idle_thread, NULL, new_thread);