Lines Matching refs:current_thread
493 thread_t thread = current_thread(); in hw_wait_while_equals32()
556 thread_t thread = current_thread(); in hw_wait_while_equals64()
634 thread_t thread = current_thread();
647 thread_t thread = current_thread();
664 thread_t thread = current_thread();
681 thread_t thread = current_thread();
716 thread_t thread = current_thread();
729 thread_t thread = current_thread();
790 thread_t thread = current_thread(); in hw_lock_bit_to_contended()
924 __lck_require_preemption_disabled(lock, current_thread());
1000 __lck_require_preemption_disabled(lock, current_thread()); in hw_unlock_bit_nopreempt()
1217 thread_t thread = current_thread(); in lck_mtx_lock_wait()
1292 thread_t thread = current_thread(); in lck_mtx_lock_acquire()
1332 thread_t thread = current_thread(); in lck_mtx_unlock_wakeup()
1581 thread_set_pending_block_hint(current_thread(), kThreadWaitSleepWithInheritor);
2052 … close a gate already closed gate %p holder %p current_thread %p", gate, holder, current_thread()); in gate_already_owned_panic()
2061 thread_t thread = current_thread(); in gate_try_close()
2076 state = GATE_THREAD_TO_STATE(current_thread()); in gate_try_close()
2081 if (holder == current_thread()) { in gate_try_close()
2096 thread_t thread = current_thread(); in gate_close()
2146 …panic("Trying to open a gate %p owned by %p from current_thread %p", gate, holder, current_thread(… in gate_not_owned_panic()
2148 …("Trying to handoff a gate %p owned by %p from current_thread %p", gate, holder, current_thread()); in gate_not_owned_panic()
2158 thread_t thread = current_thread(); in gate_open()
2256 thread_t thread = current_thread(); in gate_handoff()
2273 if (holder != current_thread()) { in gate_handoff()
2330 panic("Trying to wait on a not closed gate %p from current_thread %p", gate, current_thread()); in gate_not_closed_panic()
2332 panic("Trying to steal a not closed gate %p from current_thread %p", gate, current_thread()); in gate_not_closed_panic()
2341 thread_t thread = current_thread(); in gate_steal()
2410 holder == current_thread())) { // thread was woken up and it is the new holder in gate_wait_turnstile()
2499 assert(holder != current_thread());
2526 if (holder == current_thread()) {
2582 assert(holder == current_thread()); in gate_assert()
2684 …gate_alloc_init(). gate_free() should be used instead, gate %p thread %p", gate, current_thread()); in gate_destroy_panic()
2701 …ee a gate that was not allocated by gate_alloc_init(), gate %p thread %p", gate, current_thread()); in gate_free_panic()