Lines Matching refs:thread_inheritor
1174 thread_t thread_inheritor; member
1218 …or(&info->mtx_lock, LCK_SLEEP_DEFAULT, (event_t) &info->thread_inheritor, info->thread_inheritor, … in primitive_sleep_with_inheritor()
1221 …tor(&info->rw_lock, LCK_SLEEP_DEFAULT, (event_t) &info->thread_inheritor, info->thread_inheritor, … in primitive_sleep_with_inheritor()
1236 …p_one_with_inheritor((event_t) &info->thread_inheritor, THREAD_AWAKENED, LCK_WAKE_DEFAULT, &info->… in primitive_wakeup_one_with_inheritor()
1249 wakeup_all_with_inheritor((event_t) &info->thread_inheritor, THREAD_AWAKENED); in primitive_wakeup_all_with_inheritor()
1263 change_sleep_inheritor((event_t) &info->thread_inheritor, info->thread_inheritor); in primitive_change_sleep_inheritor()
1499 if (info->thread_inheritor == NULL) { 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()
1514 T_LOG("woken up %p", info->thread_inheritor); in thread_inheritor_like_mutex()
1516 if (info->thread_inheritor == NULL) { 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()
1521 thread_deallocate(info->thread_inheritor); in thread_inheritor_like_mutex()
1544 if (info->thread_inheritor == NULL) { in thread_just_inheritor_do_work()
1545 info->thread_inheritor = current_thread(); in thread_just_inheritor_do_work()
1583 if (info->thread_inheritor == NULL) { in thread_steal_work()
1584 info->thread_inheritor = 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()
1648 info->thread_inheritor = NULL; in thread_no_inheritor_work()
1676 if (info->thread_inheritor == NULL) { in thread_mtx_work()
1677 info->thread_inheritor = current_thread(); in thread_mtx_work()
1690 info->thread_inheritor = NULL; in thread_mtx_work()
1691 wakeup_all_with_inheritor((event_t) &info->thread_inheritor, THREAD_AWAKENED); in thread_mtx_work()
1702 …or(&info->mtx_lock, LCK_SLEEP_DEFAULT, (event_t) &info->thread_inheritor, info->thread_inheritor, … in thread_mtx_work()
1706 …tor(&info->mtx_lock, LCK_SLEEP_UNLOCK, (event_t) &info->thread_inheritor, info->thread_inheritor, … in thread_mtx_work()
1724 if (info->thread_inheritor == NULL) { in thread_mtx_work()
1725 info->thread_inheritor = current_thread(); in thread_mtx_work()
1734 info->thread_inheritor = NULL; in thread_mtx_work()
1735 wakeup_all_with_inheritor((event_t) &info->thread_inheritor, THREAD_AWAKENED); in thread_mtx_work()
1743 …ritor(&info->mtx_lock, LCK_SLEEP_SPIN, (event_t) &info->thread_inheritor, info->thread_inheritor, … in thread_mtx_work()
1747 …info->mtx_lock, LCK_SLEEP_SPIN_ALWAYS, (event_t) &info->thread_inheritor, info->thread_inheritor, … in thread_mtx_work()
1779 if (info->thread_inheritor == NULL) { in thread_rw_work()
1783 if (info->thread_inheritor == NULL) { in thread_rw_work()
1784 info->thread_inheritor = current_thread(); in thread_rw_work()
1796 info->thread_inheritor = NULL; in thread_rw_work()
1797 wakeup_all_with_inheritor((event_t) &info->thread_inheritor, THREAD_AWAKENED); in thread_rw_work()
1812 …tor(&info->rw_lock, LCK_SLEEP_DEFAULT, (event_t) &info->thread_inheritor, info->thread_inheritor, … in thread_rw_work()
1816 …itor(&info->rw_lock, LCK_SLEEP_UNLOCK, (event_t) &info->thread_inheritor, info->thread_inheritor, … in thread_rw_work()
1819 …itor(&info->rw_lock, LCK_SLEEP_SHARED, (event_t) &info->thread_inheritor, info->thread_inheritor, … in thread_rw_work()
1823 …r(&info->rw_lock, LCK_SLEEP_EXCLUSIVE, (event_t) &info->thread_inheritor, info->thread_inheritor, … in thread_rw_work()
2399 info->thread_inheritor = NULL; in test_sleep_with_wake_all()
2414 info->thread_inheritor = NULL; in test_sleep_with_wake_one()
2428 info->thread_inheritor = NULL; in test_change_sleep_inheritor()
2444 info->thread_inheritor = NULL; in test_no_inheritor()
2454 info->thread_inheritor = NULL; in test_rw_lock()
2466 info->thread_inheritor = NULL; in test_mtx_lock()
2587 if (info->thread_inheritor == NULL) { in thread_gate_aggressive()
2588 info->thread_inheritor = 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()
2811 info->thread_inheritor = NULL; in test_gate_steal()