Lines Matching refs:cur_thread
1225 thread_t cur_thread;
1229 cur_thread = current_thread();
1230 funnel_state_prev = ((cur_thread->funnel_state & TH_FN_OWNED) == TH_FN_OWNED);
1236 if (cur_thread->funnel_lock)
1237 panic("Funnel lock called when holding one %p", cur_thread->funnel_lock);
1243 cur_thread->funnel_state |= TH_FN_OWNED;
1244 cur_thread->funnel_lock = fnl;
1246 if(cur_thread->funnel_lock->fnl_mutex != fnl->fnl_mutex)
1248 cur_thread->funnel_state &= ~TH_FN_OWNED;
1252 cur_thread->funnel_lock = THR_FUNNEL_NULL;
1260 if (funneled && (fnl->fnl_mutex != cur_thread->funnel_lock->fnl_mutex)) {