Lines Matching refs:current_thread

900 				clear_wait(current_thread(), THREAD_AWAKENED);  in wait_threads()
923 thread_t thread = current_thread(); in thread_lock_unlock_kernel_primitive()
1093 if (info->threads[i] != current_thread()) { in wait_for_waiters()
1132 if (os_atomic_load(&info->threads[i], acquire) == current_thread()) { in exclude_current_waiter()
1463 uint my_pri = current_thread()->sched_pri; in thread_inheritor_like_mutex()
1465 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_inheritor_like_mutex()
1476 info->thread_inheritor = current_thread(); in thread_inheritor_like_mutex()
1488 …T_ASSERT(info->thread_inheritor == current_thread(), "thread_inheritor is %p", info->thread_inheri… in thread_inheritor_like_mutex()
1496 …T_ASSERT(info->thread_inheritor != current_thread(), "thread_inheritor is %p", info->thread_inheri… in thread_inheritor_like_mutex()
1502 assert(current_thread()->kern_promotion_schedpri == 0); in thread_inheritor_like_mutex()
1514 uint my_pri = current_thread()->sched_pri; in thread_just_inheritor_do_work()
1517 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_just_inheritor_do_work()
1521 info->thread_inheritor = current_thread(); in thread_just_inheritor_do_work()
1523 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_just_inheritor_do_work()
1530 …T_ASSERT((uint) current_thread()->sched_pri == max_pri, "sleep_inheritor inheritor priority curren… in thread_just_inheritor_do_work()
1542 assert(current_thread()->kern_promotion_schedpri == 0); in thread_just_inheritor_do_work()
1554 uint my_pri = current_thread()->sched_pri; in thread_steal_work()
1556 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_steal_work()
1560 info->thread_inheritor = current_thread(); in thread_steal_work()
1563 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_steal_work()
1569 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_steal_work()
1571 if (info->thread_inheritor == current_thread()) { in thread_steal_work()
1577 info->thread_inheritor = current_thread(); in thread_steal_work()
1585 T_LOG("Thread pri %d stole push %p", my_pri, current_thread()); in thread_steal_work()
1588 …SERT((uint) current_thread()->sched_pri == info->steal_pri, "sleep_inheritor inheritor priority cu… in thread_steal_work()
1603 assert(current_thread()->kern_promotion_schedpri == 0); in thread_steal_work()
1615 uint my_pri = current_thread()->sched_pri; in thread_no_inheritor_work()
1617 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_no_inheritor_work()
1630 assert(current_thread()->kern_promotion_schedpri == 0); in thread_no_inheritor_work()
1642 uint my_pri = current_thread()->sched_pri; in thread_mtx_work()
1648 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_mtx_work()
1653 info->thread_inheritor = current_thread(); in thread_mtx_work()
1656 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_mtx_work()
1661 …T_ASSERT((uint) current_thread()->sched_pri == max_pri, "sleep_inheritor inheritor priority curren… in thread_mtx_work()
1701 info->thread_inheritor = current_thread(); in thread_mtx_work()
1704 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_mtx_work()
1707 …T_ASSERT((uint) current_thread()->sched_pri == max_pri, "sleep_inheritor inheritor priority curren… in thread_mtx_work()
1730 assert(current_thread()->kern_promotion_schedpri == 0); in thread_mtx_work()
1742 uint my_pri = current_thread()->sched_pri; in thread_rw_work()
1749 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_rw_work()
1760 info->thread_inheritor = current_thread(); in thread_rw_work()
1764 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_rw_work()
1767 …T_ASSERT((uint) current_thread()->sched_pri == max_pri, "sleep_inheritor inheritor priority curren… in thread_rw_work()
1807 assert(current_thread()->kern_promotion_schedpri == 0); in thread_rw_work()
1991 uint my_pri = current_thread()->sched_pri; in thread_gate_aggressive()
1993 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_gate_aggressive()
1997 info->thread_inheritor = current_thread(); in thread_gate_aggressive()
2006 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_gate_aggressive()
2009 if (info->thread_inheritor == current_thread()) { in thread_gate_aggressive()
2015 info->thread_inheritor = current_thread(); in thread_gate_aggressive()
2022 T_LOG("Thread pri %d stole push %p", my_pri, current_thread()); in thread_gate_aggressive()
2024 …T_ASSERT((uint) current_thread()->sched_pri == info->steal_pri, "gate keeper priority current is %… in thread_gate_aggressive()
2039 assert(current_thread()->kern_promotion_schedpri == 0); in thread_gate_aggressive()
2051 uint my_pri = current_thread()->sched_pri; in thread_gate_free()
2053 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_gate_free()
2088 uint my_pri = current_thread()->sched_pri; in thread_gate_like_mutex()
2092 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_gate_like_mutex()
2135 uint my_pri = current_thread()->sched_pri; in thread_just_one_do_work()
2138 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_just_one_do_work()
2147 T_LOG("Thread pri %d acquired the gate %p", my_pri, current_thread()); in thread_just_one_do_work()
2151 …T_ASSERT((uint) current_thread()->sched_pri == max_pri, "gate owner priority current is %d, should… in thread_just_one_do_work()
2166 assert(current_thread()->kern_promotion_schedpri == 0); in thread_just_one_do_work()
2332 thread_t self = current_thread(); in thread_sleep_gate_chain_work()
2416 assert(current_thread()->kern_promotion_schedpri == 0); in thread_sleep_gate_chain_work()
2428 thread_t self = current_thread(); in thread_gate_chain_work()
2479 assert(current_thread()->kern_promotion_schedpri == 0); in thread_gate_chain_work()
2491 thread_t self = current_thread(); in thread_sleep_chain_work()
2557 assert(current_thread()->kern_promotion_schedpri == 0); in thread_sleep_chain_work()