Lines Matching refs:current_thread
897 clear_wait(current_thread(), THREAD_AWAKENED); in wait_threads()
920 thread_t thread = current_thread(); in thread_lock_unlock_kernel_primitive()
1090 if (info->threads[i] != current_thread()) { in wait_for_waiters()
1129 if (os_atomic_load(&info->threads[i], acquire) == current_thread()) { in exclude_current_waiter()
1460 uint my_pri = current_thread()->sched_pri; in thread_inheritor_like_mutex()
1462 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_inheritor_like_mutex()
1473 info->thread_inheritor = current_thread(); in thread_inheritor_like_mutex()
1485 …T_ASSERT(info->thread_inheritor == current_thread(), "thread_inheritor is %p", info->thread_inheri… in thread_inheritor_like_mutex()
1493 …T_ASSERT(info->thread_inheritor != current_thread(), "thread_inheritor is %p", info->thread_inheri… in thread_inheritor_like_mutex()
1499 assert(current_thread()->kern_promotion_schedpri == 0); in thread_inheritor_like_mutex()
1511 uint my_pri = current_thread()->sched_pri; in thread_just_inheritor_do_work()
1514 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_just_inheritor_do_work()
1518 info->thread_inheritor = current_thread(); in thread_just_inheritor_do_work()
1520 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_just_inheritor_do_work()
1527 …T_ASSERT((uint) current_thread()->sched_pri == max_pri, "sleep_inheritor inheritor priority curren… in thread_just_inheritor_do_work()
1539 assert(current_thread()->kern_promotion_schedpri == 0); in thread_just_inheritor_do_work()
1551 uint my_pri = current_thread()->sched_pri; in thread_steal_work()
1553 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_steal_work()
1557 info->thread_inheritor = current_thread(); in thread_steal_work()
1560 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_steal_work()
1566 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_steal_work()
1568 if (info->thread_inheritor == current_thread()) { in thread_steal_work()
1574 info->thread_inheritor = current_thread(); in thread_steal_work()
1582 T_LOG("Thread pri %d stole push %p", my_pri, current_thread()); in thread_steal_work()
1585 …SERT((uint) current_thread()->sched_pri == info->steal_pri, "sleep_inheritor inheritor priority cu… in thread_steal_work()
1600 assert(current_thread()->kern_promotion_schedpri == 0); in thread_steal_work()
1612 uint my_pri = current_thread()->sched_pri; in thread_no_inheritor_work()
1614 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_no_inheritor_work()
1627 assert(current_thread()->kern_promotion_schedpri == 0); in thread_no_inheritor_work()
1639 uint my_pri = current_thread()->sched_pri; in thread_mtx_work()
1645 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_mtx_work()
1650 info->thread_inheritor = current_thread(); in thread_mtx_work()
1653 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_mtx_work()
1658 …T_ASSERT((uint) current_thread()->sched_pri == max_pri, "sleep_inheritor inheritor priority curren… in thread_mtx_work()
1698 info->thread_inheritor = current_thread(); in thread_mtx_work()
1701 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_mtx_work()
1704 …T_ASSERT((uint) current_thread()->sched_pri == max_pri, "sleep_inheritor inheritor priority curren… in thread_mtx_work()
1727 assert(current_thread()->kern_promotion_schedpri == 0); in thread_mtx_work()
1739 uint my_pri = current_thread()->sched_pri; in thread_rw_work()
1746 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_rw_work()
1757 info->thread_inheritor = current_thread(); in thread_rw_work()
1761 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_rw_work()
1764 …T_ASSERT((uint) current_thread()->sched_pri == max_pri, "sleep_inheritor inheritor priority curren… in thread_rw_work()
1804 assert(current_thread()->kern_promotion_schedpri == 0); in thread_rw_work()
1988 uint my_pri = current_thread()->sched_pri; in thread_gate_aggressive()
1990 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_gate_aggressive()
1994 info->thread_inheritor = current_thread(); in thread_gate_aggressive()
2003 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_gate_aggressive()
2006 if (info->thread_inheritor == current_thread()) { in thread_gate_aggressive()
2012 info->thread_inheritor = current_thread(); in thread_gate_aggressive()
2019 T_LOG("Thread pri %d stole push %p", my_pri, current_thread()); in thread_gate_aggressive()
2021 …T_ASSERT((uint) current_thread()->sched_pri == info->steal_pri, "gate keeper priority current is %… in thread_gate_aggressive()
2036 assert(current_thread()->kern_promotion_schedpri == 0); in thread_gate_aggressive()
2048 uint my_pri = current_thread()->sched_pri; in thread_gate_free()
2050 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_gate_free()
2085 uint my_pri = current_thread()->sched_pri; in thread_gate_like_mutex()
2089 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_gate_like_mutex()
2132 uint my_pri = current_thread()->sched_pri; in thread_just_one_do_work()
2135 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_just_one_do_work()
2144 T_LOG("Thread pri %d acquired the gate %p", my_pri, current_thread()); in thread_just_one_do_work()
2148 …T_ASSERT((uint) current_thread()->sched_pri == max_pri, "gate owner priority current is %d, should… in thread_just_one_do_work()
2163 assert(current_thread()->kern_promotion_schedpri == 0); in thread_just_one_do_work()
2329 thread_t self = current_thread(); in thread_sleep_gate_chain_work()
2413 assert(current_thread()->kern_promotion_schedpri == 0); in thread_sleep_gate_chain_work()
2425 thread_t self = current_thread(); in thread_gate_chain_work()
2476 assert(current_thread()->kern_promotion_schedpri == 0); in thread_gate_chain_work()
2488 thread_t self = current_thread(); in thread_sleep_chain_work()
2554 assert(current_thread()->kern_promotion_schedpri == 0); in thread_sleep_chain_work()