Lines Matching refs:new_thread
1173 thread_t new_thread = THREAD_NULL;
1309 new_thread = steal_thread(pset);
1310 if (new_thread != THREAD_NULL)
1311 return (new_thread);
1347 new_thread = thread_select_idle(thread, processor);
1349 } while (new_thread == THREAD_NULL);
1351 return (new_thread);
1366 thread_t new_thread;
1396 spllo(); new_thread = processor_idle(thread, processor);
1429 return (new_thread);
1809 register thread_t new_thread;
1833 new_thread = thread_select(self, processor);
1835 } while (!thread_invoke(self, new_thread, reason));
1878 thread_t new_thread)
1887 while (!thread_invoke(self, new_thread, handoff)) {
1891 new_thread = thread_select(self, processor);
2856 thread_t new_thread;
2897 new_thread = processor->next_thread;
2901 if ( processor->runq.highq > new_thread->sched_pri ||
2902 (rt_runq.highq > 0 && rt_runq.highq >= new_thread->sched_pri) ) {
2907 thread_lock(new_thread);
2908 thread_setrun(new_thread, SCHED_HEADQ);
2909 thread_unlock(new_thread);
2920 MACHDBG_CODE(DBG_MACH_SCHED,MACH_IDLE) | DBG_FUNC_END, (int)thread, (int)state, (int)new_thread, 0, 0);
2922 return (new_thread);
2942 if ((new_thread = processor->next_thread) != THREAD_NULL) {
2948 thread_lock(new_thread);
2949 thread_setrun(new_thread, SCHED_HEADQ);
2950 thread_unlock(new_thread);
2976 thread_t new_thread;
2978 new_thread = processor_idle(THREAD_NULL, processor);
2979 if (new_thread != THREAD_NULL) {
2980 thread_run(processor->idle_thread, (thread_continue_t)idle_thread, NULL, new_thread);