Lines Matching refs:THREAD_NULL

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)) {
1751 if ((new_thread = SCHED(fairshare_dequeue)()) != THREAD_NULL) {
1784 if (new_thread != THREAD_NULL) {
1844 } while (new_thread == THREAD_NULL);
1963 if (thread != THREAD_NULL) {
1981 * Associated pset must be locked. Returns THREAD_NULL
2023 return (THREAD_NULL);
2322 if (thread != THREAD_NULL) {
2649 if (thread != THREAD_NULL)
2671 if ((thread == THREAD_NULL) || thread->priority > MAXPRI_THROTTLE)
2762 return THREAD_NULL;
3679 while ((thread = (thread_t)dequeue_head(&tqueue)) != THREAD_NULL) {
3911 * Associated pset must be locked. Returns THREAD_NULL
3952 return (THREAD_NULL);
3962 * Returns the stolen thread, or THREAD_NULL on
3978 if (thread != THREAD_NULL) {
4003 return (THREAD_NULL);
4011 return (THREAD_NULL);
4089 while (processor->next_thread == THREAD_NULL && SCHED(processor_queue_empty)(processor) && rt_runq.count == 0 && SCHED(fairshare_runq_count)() == 0 &&
4090 (thread == THREAD_NULL || ((thread->state & (TH_WAIT|TH_SUSP)) == TH_WAIT && !thread->wake_active))) {
4121 processor->next_thread = THREAD_NULL;
4139 return (THREAD_NULL);
4168 if ((new_thread = processor->next_thread) != THREAD_NULL) {
4169 processor->next_thread = THREAD_NULL;
4182 return (THREAD_NULL);
4192 return (THREAD_NULL);
4206 new_thread = processor_idle(THREAD_NULL, processor);
4207 if (new_thread != THREAD_NULL) {
4409 if (thread != THREAD_NULL && thread->sched_stamp != sched_tick) {
4425 thread_update_array[thread_update_count] = THREAD_NULL;