Lines Matching refs:curthread
89 klwp_t *lwp = ttolwp(curthread); in shuttle_resume()
93 thread_lock(curthread); in shuttle_resume()
100 curthread->t_flag |= T_WAKEABLE; in shuttle_resume()
101 curthread->t_sobj_ops = &shuttle_sobj_ops; in shuttle_resume()
115 curthread->t_wchan0 = (caddr_t)1; in shuttle_resume()
116 CL_INACTIVE(curthread); in shuttle_resume()
119 THREAD_SLEEP(curthread, &shuttle_lock); in shuttle_resume()
125 (void) new_mstate(curthread, LMS_SLEEP); in shuttle_resume()
164 if (lwp && (ISSIG(curthread, JUSTLOOKING) || in shuttle_resume()
165 MUSTRETURN(curproc, curthread) || schedctl_cancel_pending())) in shuttle_resume()
166 setrun(curthread); in shuttle_resume()
183 klwp_t *lwp = ttolwp(curthread); in shuttle_swtch()
185 thread_lock(curthread); in shuttle_swtch()
190 curthread->t_flag |= T_WAKEABLE; in shuttle_swtch()
191 curthread->t_sobj_ops = &shuttle_sobj_ops; in shuttle_swtch()
192 curthread->t_wchan0 = (caddr_t)1; in shuttle_swtch()
193 CL_INACTIVE(curthread); in shuttle_swtch()
195 THREAD_SLEEP(curthread, &shuttle_lock); in shuttle_swtch()
196 (void) new_mstate(curthread, LMS_SLEEP); in shuttle_swtch()
199 if (ISSIG(curthread, JUSTLOOKING) || in shuttle_swtch()
200 MUSTRETURN(curproc, curthread) || schedctl_cancel_pending()) in shuttle_swtch()
201 setrun(curthread); in shuttle_swtch()