Lines Matching refs:current_thread

921 				clear_wait(current_thread(), THREAD_AWAKENED);  in wait_threads()
944 thread_t thread = current_thread(); in thread_lock_unlock_kernel_primitive()
1114 if (info->threads[i] != current_thread()) { in wait_for_waiters()
1153 if (os_atomic_load(&info->threads[i], acquire) == current_thread()) { in exclude_current_waiter()
1487 uint my_pri = current_thread()->sched_pri; in thread_inheritor_like_mutex()
1489 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_inheritor_like_mutex()
1500 info->thread_inheritor = current_thread(); in thread_inheritor_like_mutex()
1512 …T_ASSERT(info->thread_inheritor == current_thread(), "thread_inheritor is %p", info->thread_inheri… in thread_inheritor_like_mutex()
1520 …T_ASSERT(info->thread_inheritor != current_thread(), "thread_inheritor is %p", info->thread_inheri… in thread_inheritor_like_mutex()
1526 assert(current_thread()->kern_promotion_schedpri == 0); in thread_inheritor_like_mutex()
1538 uint my_pri = current_thread()->sched_pri; in thread_just_inheritor_do_work()
1541 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_just_inheritor_do_work()
1545 info->thread_inheritor = current_thread(); in thread_just_inheritor_do_work()
1547 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_just_inheritor_do_work()
1554 …T_ASSERT((uint) current_thread()->sched_pri == max_pri, "sleep_inheritor inheritor priority curren… in thread_just_inheritor_do_work()
1566 assert(current_thread()->kern_promotion_schedpri == 0); in thread_just_inheritor_do_work()
1578 uint my_pri = current_thread()->sched_pri; in thread_steal_work()
1580 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_steal_work()
1584 info->thread_inheritor = current_thread(); in thread_steal_work()
1587 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_steal_work()
1593 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_steal_work()
1595 if (info->thread_inheritor == current_thread()) { in thread_steal_work()
1601 info->thread_inheritor = current_thread(); in thread_steal_work()
1609 T_LOG("Thread pri %d stole push %p", my_pri, current_thread()); in thread_steal_work()
1612 …SERT((uint) current_thread()->sched_pri == info->steal_pri, "sleep_inheritor inheritor priority cu… in thread_steal_work()
1627 assert(current_thread()->kern_promotion_schedpri == 0); in thread_steal_work()
1639 uint my_pri = current_thread()->sched_pri; in thread_no_inheritor_work()
1641 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_no_inheritor_work()
1654 assert(current_thread()->kern_promotion_schedpri == 0); in thread_no_inheritor_work()
1666 uint my_pri = current_thread()->sched_pri; in thread_mtx_work()
1672 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_mtx_work()
1677 info->thread_inheritor = current_thread(); in thread_mtx_work()
1680 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_mtx_work()
1685 …T_ASSERT((uint) current_thread()->sched_pri == max_pri, "sleep_inheritor inheritor priority curren… in thread_mtx_work()
1725 info->thread_inheritor = current_thread(); in thread_mtx_work()
1728 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_mtx_work()
1731 …T_ASSERT((uint) current_thread()->sched_pri == max_pri, "sleep_inheritor inheritor priority curren… in thread_mtx_work()
1754 assert(current_thread()->kern_promotion_schedpri == 0); in thread_mtx_work()
1766 uint my_pri = current_thread()->sched_pri; in thread_rw_work()
1773 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_rw_work()
1784 info->thread_inheritor = current_thread(); in thread_rw_work()
1788 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_rw_work()
1791 …T_ASSERT((uint) current_thread()->sched_pri == max_pri, "sleep_inheritor inheritor priority curren… in thread_rw_work()
1831 assert(current_thread()->kern_promotion_schedpri == 0); in thread_rw_work()
1994 …panic("Thread %p observed OBJ_STATE_PLACEHOLDER %d for obj %d", current_thread(), obj->obj_state, … in get_obj_cache()
1996 …panic("Thread %p observed an unknown obj_state %d for obj %d", current_thread(), obj->obj_state, o… in get_obj_cache()
2156 T_LOG("Thread %p started and it is going to use obj %d", current_thread(), my_obj); in thread_use_cache()
2178 …ing, my_string_size) == 0, "reflock: thread %p obj_id %d value in buff", current_thread(), my_obj); in thread_use_cache()
2180 …ing, my_string_size) == 0, "reflock: thread %p obj_id %d value in buff", current_thread(), my_obj); in thread_use_cache()
2198 T_LOG("Thread %p started", current_thread()); in thread_refcount_reflock()
2251 T_LOG("Thread %p started", current_thread()); in thread_force_reflock()
2253 T_LOG("Thread %p is locker", current_thread()); in thread_force_reflock()
2292 T_LOG("Thread %p started", current_thread()); in thread_lock_reflock()
2294 T_LOG("Thread %p is locker", current_thread()); in thread_lock_reflock()
2582 uint my_pri = current_thread()->sched_pri; in thread_gate_aggressive()
2584 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_gate_aggressive()
2588 info->thread_inheritor = current_thread(); in thread_gate_aggressive()
2597 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_gate_aggressive()
2600 if (info->thread_inheritor == current_thread()) { in thread_gate_aggressive()
2606 info->thread_inheritor = current_thread(); in thread_gate_aggressive()
2613 T_LOG("Thread pri %d stole push %p", my_pri, current_thread()); in thread_gate_aggressive()
2615 …T_ASSERT((uint) current_thread()->sched_pri == info->steal_pri, "gate keeper priority current is %… in thread_gate_aggressive()
2630 assert(current_thread()->kern_promotion_schedpri == 0); in thread_gate_aggressive()
2642 uint my_pri = current_thread()->sched_pri; in thread_gate_free()
2644 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_gate_free()
2679 uint my_pri = current_thread()->sched_pri; in thread_gate_like_mutex()
2683 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_gate_like_mutex()
2726 uint my_pri = current_thread()->sched_pri; in thread_just_one_do_work()
2729 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_just_one_do_work()
2738 T_LOG("Thread pri %d acquired the gate %p", my_pri, current_thread()); in thread_just_one_do_work()
2742 …T_ASSERT((uint) current_thread()->sched_pri == max_pri, "gate owner priority current is %d, should… in thread_just_one_do_work()
2757 assert(current_thread()->kern_promotion_schedpri == 0); in thread_just_one_do_work()
2923 thread_t self = current_thread(); in thread_sleep_gate_chain_work()
3007 assert(current_thread()->kern_promotion_schedpri == 0); in thread_sleep_gate_chain_work()
3019 thread_t self = current_thread(); in thread_gate_chain_work()
3070 assert(current_thread()->kern_promotion_schedpri == 0); in thread_gate_chain_work()
3082 thread_t self = current_thread(); in thread_sleep_chain_work()
3148 assert(current_thread()->kern_promotion_schedpri == 0); in thread_sleep_chain_work()