Lines Matching refs:mtx_lock
1162 lck_mtx_t mtx_lock; member
1187 lck_mtx_lock(&info->mtx_lock); in primitive_lock()
1202 lck_mtx_unlock(&info->mtx_lock); in primitive_unlock()
1218 …ret = lck_mtx_sleep_with_inheritor(&info->mtx_lock, LCK_SLEEP_DEFAULT, (event_t) &info->thread_inh… in primitive_sleep_with_inheritor()
1281 ret = lck_mtx_gate_try_close(&info->mtx_lock, gate); in primitive_gate_try_close()
1302 …ret = lck_mtx_gate_wait(&info->mtx_lock, gate, LCK_SLEEP_DEFAULT, THREAD_UNINT | THREAD_WAIT_NOREP… in primitive_gate_wait()
1322 lck_mtx_gate_open(&info->mtx_lock, gate); in primitive_gate_open()
1342 lck_mtx_gate_close(&info->mtx_lock, gate); in primitive_gate_close()
1362 lck_mtx_gate_steal(&info->mtx_lock, gate); in primitive_gate_steal()
1383 ret = lck_mtx_gate_handoff(&info->mtx_lock, gate, flags); in primitive_gate_handoff()
1404 lck_mtx_gate_assert(&info->mtx_lock, gate, type); in primitive_gate_assert()
1419 lck_mtx_gate_init(&info->mtx_lock, &info->gate); in primitive_gate_init()
1434 lck_mtx_gate_destroy(&info->mtx_lock, &info->gate); in primitive_gate_destroy()
1450 gate = lck_mtx_gate_alloc_init(&info->mtx_lock); in primitive_gate_alloc()
1468 lck_mtx_gate_free(&info->mtx_lock, info->alloc_gate); in primitive_gate_free()
1675 lck_mtx_lock(&info->mtx_lock); in thread_mtx_work()
1678 lck_mtx_unlock(&info->mtx_lock); in thread_mtx_work()
1689 lck_mtx_lock(&info->mtx_lock); in thread_mtx_work()
1692 lck_mtx_unlock(&info->mtx_lock); in thread_mtx_work()
1702 …lck_mtx_sleep_with_inheritor(&info->mtx_lock, LCK_SLEEP_DEFAULT, (event_t) &info->thread_inheritor… in thread_mtx_work()
1703 lck_mtx_unlock(&info->mtx_lock); in thread_mtx_work()
1706 …lck_mtx_sleep_with_inheritor(&info->mtx_lock, LCK_SLEEP_UNLOCK, (event_t) &info->thread_inheritor,… in thread_mtx_work()
1723 lck_mtx_lock_spin(&info->mtx_lock); in thread_mtx_work()
1726 lck_mtx_unlock(&info->mtx_lock); in thread_mtx_work()
1733 lck_mtx_lock_spin(&info->mtx_lock); in thread_mtx_work()
1736 lck_mtx_unlock(&info->mtx_lock); in thread_mtx_work()
1743 …lck_mtx_sleep_with_inheritor(&info->mtx_lock, LCK_SLEEP_SPIN, (event_t) &info->thread_inheritor, i… in thread_mtx_work()
1744 lck_mtx_unlock(&info->mtx_lock); in thread_mtx_work()
1747 …lck_mtx_sleep_with_inheritor(&info->mtx_lock, LCK_SLEEP_SPIN_ALWAYS, (event_t) &info->thread_inher… in thread_mtx_work()
1748 lck_mtx_unlock(&info->mtx_lock); in thread_mtx_work()
2486 lck_mtx_init(&info.mtx_lock, lck_grp, lck_attr); in ts_kernel_sleep_inheritor_test()
2570 lck_mtx_destroy(&info.mtx_lock, lck_grp); in ts_kernel_sleep_inheritor_test()
2853 lck_mtx_init(&info.mtx_lock, lck_grp, lck_attr); in ts_kernel_gate_test()
2900 lck_mtx_destroy(&info.mtx_lock, lck_grp); in ts_kernel_gate_test()
2910 lck_mtx_t mtx_lock; member
2946 lck_mtx_lock(&info->mtx_lock); in thread_sleep_gate_chain_work()
2947 lck_mtx_gate_close(&info->mtx_lock, &info->gates[i]); in thread_sleep_gate_chain_work()
2948 lck_mtx_unlock(&info->mtx_lock); in thread_sleep_gate_chain_work()
2962 lck_mtx_lock(&info->mtx_lock); in thread_sleep_gate_chain_work()
2963 lck_mtx_gate_open(&info->mtx_lock, &info->gates[0]); in thread_sleep_gate_chain_work()
2964 lck_mtx_unlock(&info->mtx_lock); in thread_sleep_gate_chain_work()
2978 lck_mtx_lock(&info->mtx_lock); in thread_sleep_gate_chain_work()
2982 …lck_mtx_gate_wait(&info->mtx_lock, &info->gates[i - 1], LCK_SLEEP_UNLOCK, THREAD_UNINT | THREAD_WA… in thread_sleep_gate_chain_work()
2998 …lck_mtx_sleep_with_inheritor(&info->mtx_lock, LCK_SLEEP_UNLOCK, wait_event, inheritor, THREAD_UNIN… in thread_sleep_gate_chain_work()
3001 lck_mtx_lock(&info->mtx_lock); in thread_sleep_gate_chain_work()
3002 lck_mtx_gate_open(&info->mtx_lock, &info->gates[i]); in thread_sleep_gate_chain_work()
3003 lck_mtx_unlock(&info->mtx_lock); in thread_sleep_gate_chain_work()
3037 lck_mtx_lock(&info->mtx_lock); in thread_gate_chain_work()
3038 lck_mtx_gate_close(&info->mtx_lock, &info->gates[i]); in thread_gate_chain_work()
3039 lck_mtx_unlock(&info->mtx_lock); in thread_gate_chain_work()
3055 lck_mtx_lock(&info->mtx_lock); in thread_gate_chain_work()
3056 lck_mtx_gate_open(&info->mtx_lock, &info->gates[0]); in thread_gate_chain_work()
3057 lck_mtx_unlock(&info->mtx_lock); in thread_gate_chain_work()
3059 lck_mtx_lock(&info->mtx_lock); in thread_gate_chain_work()
3061 …lck_mtx_gate_wait(&info->mtx_lock, &info->gates[i - 1], LCK_SLEEP_UNLOCK, THREAD_UNINT | THREAD_WA… in thread_gate_chain_work()
3065 lck_mtx_lock(&info->mtx_lock); in thread_gate_chain_work()
3066 lck_mtx_gate_open(&info->mtx_lock, &info->gates[i]); in thread_gate_chain_work()
3067 lck_mtx_unlock(&info->mtx_lock); in thread_gate_chain_work()
3128 lck_mtx_lock(&info->mtx_lock); in thread_sleep_chain_work()
3131 …lck_mtx_sleep_with_inheritor(&info->mtx_lock, LCK_SLEEP_UNLOCK, wait_event, inheritor, THREAD_UNIN… in thread_sleep_chain_work()
3197 lck_mtx_init(&info.mtx_lock, lck_grp, lck_attr); in ts_kernel_turnstile_chain_test()
3199 lck_mtx_gate_init(&info.mtx_lock, &info.gates[i]); in ts_kernel_turnstile_chain_test()
3213 lck_mtx_gate_destroy(&info.mtx_lock, &info.gates[i]); in ts_kernel_turnstile_chain_test()
3217 lck_mtx_destroy(&info.mtx_lock, lck_grp); in ts_kernel_turnstile_chain_test()