Lines Matching refs:lock
349 (void) lck_mtx_sleep(&(zone)->lock, LCK_SLEEP_SPIN, (event_t)(zone), THREAD_UNINT);
359 lck_mtx_init_ext(&(zone)->lock, &(zone)->lock_ext, \
363 #define lock_try_zone(zone) lck_mtx_try_lock_spin(&zone->lock)
492 * The allocation log and all the related variables are protected by the zone lock for the zone_of_interest
596 /* Times zleak_log returned false due to not being able to acquire the lock */
768 * path accesses the table without a lock if we're active.
921 /* Double-checked locking: check to find out if we're interested, lock, check to make
922 * sure it hasn't changed, then modify it, and release the lock.
926 /* if the allocation was the one, grab the lock, check again, then delete it */
1735 * when we obtain the lock.
1874 * suspected, so this code rarely executes. We need to do this code while still holding the zone lock
2612 * while holding a zone lock since it's taken
2613 * as a spin lock (which prevents preemption)
2714 /* z->waiting checked without lock held, rechecked below after locking */