Lines Matching refs:current_thread

925 				clear_wait(current_thread(), THREAD_AWAKENED);  in wait_threads()
948 thread_t thread = current_thread(); in thread_lock_unlock_kernel_primitive()
1118 if (info->threads[i] != current_thread()) { in wait_for_waiters()
1157 if (os_atomic_load(&info->threads[i], acquire) == current_thread()) { in exclude_current_waiter()
1491 uint my_pri = current_thread()->sched_pri; in thread_inheritor_like_mutex()
1493 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_inheritor_like_mutex()
1504 info->thread_inheritor = current_thread(); in thread_inheritor_like_mutex()
1516 …T_ASSERT(info->thread_inheritor == current_thread(), "thread_inheritor is %p", info->thread_inheri… in thread_inheritor_like_mutex()
1524 …T_ASSERT(info->thread_inheritor != current_thread(), "thread_inheritor is %p", info->thread_inheri… in thread_inheritor_like_mutex()
1530 assert(current_thread()->kern_promotion_schedpri == 0); in thread_inheritor_like_mutex()
1542 uint my_pri = current_thread()->sched_pri; in thread_just_inheritor_do_work()
1545 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_just_inheritor_do_work()
1549 info->thread_inheritor = current_thread(); in thread_just_inheritor_do_work()
1551 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_just_inheritor_do_work()
1558 …T_ASSERT((uint) current_thread()->sched_pri == max_pri, "sleep_inheritor inheritor priority curren… in thread_just_inheritor_do_work()
1570 assert(current_thread()->kern_promotion_schedpri == 0); in thread_just_inheritor_do_work()
1582 uint my_pri = current_thread()->sched_pri; in thread_steal_work()
1584 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_steal_work()
1588 info->thread_inheritor = current_thread(); in thread_steal_work()
1591 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_steal_work()
1597 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_steal_work()
1599 if (info->thread_inheritor == current_thread()) { in thread_steal_work()
1605 info->thread_inheritor = current_thread(); in thread_steal_work()
1613 T_LOG("Thread pri %d stole push %p", my_pri, current_thread()); in thread_steal_work()
1616 …SERT((uint) current_thread()->sched_pri == info->steal_pri, "sleep_inheritor inheritor priority cu… in thread_steal_work()
1631 assert(current_thread()->kern_promotion_schedpri == 0); in thread_steal_work()
1643 uint my_pri = current_thread()->sched_pri; in thread_no_inheritor_work()
1645 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_no_inheritor_work()
1658 assert(current_thread()->kern_promotion_schedpri == 0); in thread_no_inheritor_work()
1670 uint my_pri = current_thread()->sched_pri; in thread_mtx_work()
1676 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_mtx_work()
1681 info->thread_inheritor = current_thread(); in thread_mtx_work()
1684 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_mtx_work()
1689 …T_ASSERT((uint) current_thread()->sched_pri == max_pri, "sleep_inheritor inheritor priority curren… in thread_mtx_work()
1729 info->thread_inheritor = current_thread(); in thread_mtx_work()
1732 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_mtx_work()
1735 …T_ASSERT((uint) current_thread()->sched_pri == max_pri, "sleep_inheritor inheritor priority curren… in thread_mtx_work()
1758 assert(current_thread()->kern_promotion_schedpri == 0); in thread_mtx_work()
1770 uint my_pri = current_thread()->sched_pri; in thread_rw_work()
1777 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_rw_work()
1788 info->thread_inheritor = current_thread(); in thread_rw_work()
1792 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_rw_work()
1795 …T_ASSERT((uint) current_thread()->sched_pri == max_pri, "sleep_inheritor inheritor priority curren… in thread_rw_work()
1835 assert(current_thread()->kern_promotion_schedpri == 0); in thread_rw_work()
1998 …panic("Thread %p observed OBJ_STATE_PLACEHOLDER %d for obj %d", current_thread(), obj->obj_state, … in get_obj_cache()
2000 …panic("Thread %p observed an unknown obj_state %d for obj %d", current_thread(), obj->obj_state, o… in get_obj_cache()
2160 T_LOG("Thread %p started and it is going to use obj %d", current_thread(), my_obj); in thread_use_cache()
2182 …ing, my_string_size) == 0, "reflock: thread %p obj_id %d value in buff", current_thread(), my_obj); in thread_use_cache()
2184 …ing, my_string_size) == 0, "reflock: thread %p obj_id %d value in buff", current_thread(), my_obj); in thread_use_cache()
2202 T_LOG("Thread %p started", current_thread()); in thread_refcount_reflock()
2255 T_LOG("Thread %p started", current_thread()); in thread_force_reflock()
2257 T_LOG("Thread %p is locker", current_thread()); in thread_force_reflock()
2296 T_LOG("Thread %p started", current_thread()); in thread_lock_reflock()
2298 T_LOG("Thread %p is locker", current_thread()); in thread_lock_reflock()
2586 uint my_pri = current_thread()->sched_pri; in thread_gate_aggressive()
2588 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_gate_aggressive()
2592 info->thread_inheritor = current_thread(); in thread_gate_aggressive()
2601 T_LOG("Thread pri %d first to run %p", my_pri, current_thread()); in thread_gate_aggressive()
2604 if (info->thread_inheritor == current_thread()) { in thread_gate_aggressive()
2610 info->thread_inheritor = current_thread(); in thread_gate_aggressive()
2617 T_LOG("Thread pri %d stole push %p", my_pri, current_thread()); in thread_gate_aggressive()
2619 …T_ASSERT((uint) current_thread()->sched_pri == info->steal_pri, "gate keeper priority current is %… in thread_gate_aggressive()
2634 assert(current_thread()->kern_promotion_schedpri == 0); in thread_gate_aggressive()
2646 uint my_pri = current_thread()->sched_pri; in thread_gate_free()
2648 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_gate_free()
2683 uint my_pri = current_thread()->sched_pri; in thread_gate_like_mutex()
2687 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_gate_like_mutex()
2730 uint my_pri = current_thread()->sched_pri; in thread_just_one_do_work()
2733 T_LOG("Started thread pri %d %p", my_pri, current_thread()); in thread_just_one_do_work()
2742 T_LOG("Thread pri %d acquired the gate %p", my_pri, current_thread()); in thread_just_one_do_work()
2746 …T_ASSERT((uint) current_thread()->sched_pri == max_pri, "gate owner priority current is %d, should… in thread_just_one_do_work()
2761 assert(current_thread()->kern_promotion_schedpri == 0); in thread_just_one_do_work()
2927 thread_t self = current_thread(); in thread_sleep_gate_chain_work()
3011 assert(current_thread()->kern_promotion_schedpri == 0); in thread_sleep_gate_chain_work()
3023 thread_t self = current_thread(); in thread_gate_chain_work()
3074 assert(current_thread()->kern_promotion_schedpri == 0); in thread_gate_chain_work()
3086 thread_t self = current_thread(); in thread_sleep_chain_work()
3152 assert(current_thread()->kern_promotion_schedpri == 0); in thread_sleep_chain_work()