Lines Matching refs:curthread
72 klwp_t *lwp = ttolwp(curthread); \
73 ASSERT(THREAD_LOCK_HELD(curthread)); \
74 ASSERT(curthread != CPU->cpu_idle_thread); \
76 ASSERT(curthread->t_wchan0 == NULL); \
77 ASSERT(curthread->t_wchan == NULL); \
78 ASSERT(curthread->t_state == TS_ONPROC); \
79 CL_SLEEP(curthread); \
80 THREAD_SLEEP(curthread, lockp); \
81 curthread->t_wchan = (caddr_t)s; \
82 curthread->t_sobj_ops = &sema_sobj_ops; \
86 (void) new_mstate(curthread, LMS_SLEEP); \
88 cpri = DISP_PRIO(curthread); \
95 *tpp = curthread; \
96 curthread->t_link = tp; \
241 thread_lock_high(curthread); in sema_p()
243 thread_unlock_nopreempt(curthread); in sema_p()
258 kthread_t *t = curthread; in sema_p_sig()