Lines Matching refs:p_singlethread
564 thread_lock(p->p_singlethread); in thread_exit()
566 p->p_singlethread, p, false); in thread_exit()
567 thread_unlock(p->p_singlethread); in thread_exit()
804 if (p->p_singlethread != NULL && p->p_singlethread != td) in thread_single()
821 p->p_singlethread = td; in thread_single()
866 p->p_singlethread = NULL; in thread_single()
966 KASSERT(p->p_singlethread != NULL, in thread_suspend_check()
974 if (p->p_singlethread == td) in thread_suspend_check()
1002 if ((p->p_flag & P_SINGLE_EXIT) && (p->p_singlethread != td)) { in thread_suspend_check()
1020 thread_lock(p->p_singlethread); in thread_suspend_check()
1022 p->p_singlethread, p, false); in thread_suspend_check()
1023 thread_unlock(p->p_singlethread); in thread_suspend_check()
1138 if (p->p_singlethread->td_proc == p) { in thread_unsuspend()
1139 thread_lock(p->p_singlethread); in thread_unsuspend()
1141 p->p_singlethread, p, false); in thread_unsuspend()
1142 thread_unlock(p->p_singlethread); in thread_unsuspend()
1165 KASSERT(mode == SINGLE_ALLPROC || p->p_singlethread == curthread, in thread_single_end()
1167 curthread, p->p_singlethread)); in thread_single_end()
1174 p->p_singlethread = NULL; in thread_single_end()