Lines Matching defs:lock

140 #define TAS(lock) tas(lock)  argument
143 tas(volatile slock_t *lock) in tas()
210 #define TAS(lock) tas(lock) argument
221 #define TAS_SPIN(lock) (*(lock) ? 1 : TAS(lock)) argument
224 tas(volatile slock_t *lock) in tas()
278 #define TAS(lock) tas(lock) argument
281 #define TAS_SPIN(lock) (*(lock) ? 1 : TAS(lock)) argument
286 tas(volatile slock_t *lock) in tas()
301 tas(volatile slock_t *lock) in tas()
311 #define S_UNLOCK(lock) \ argument
328 #define TAS(lock) tas(lock) argument
333 tas(volatile slock_t *lock) in tas()
338 #define S_UNLOCK(lock) __sync_lock_release(lock) argument
351 #define TAS(lock) tas(lock) argument
356 tas(volatile slock_t *lock) in tas()
361 #define S_UNLOCK(lock) __sync_lock_release(lock) argument
373 #define TAS(lock) tas(lock) argument
376 tas(volatile slock_t *lock) in tas()
402 #define TAS(lock) tas(lock) argument
405 tas(volatile slock_t *lock) in tas()
445 #define S_UNLOCK(lock) \ argument
456 #define S_UNLOCK(lock) \ argument
473 #define TAS(lock) tas(lock) argument
476 #define TAS_SPIN(lock) (*(lock) ? 1 : TAS(lock)) argument
495 tas(volatile slock_t *lock) in tas()
531 #define S_UNLOCK(lock) \ argument
538 #define S_UNLOCK(lock) \ argument
555 #define TAS(lock) tas(lock) argument
558 tas(volatile slock_t *lock) in tas()
581 #define TAS(lock) tas(lock) argument
584 tas(volatile slock_t *lock) in tas()
608 #define TAS(lock) tas(lock) argument
611 tas(volatile slock_t *lock) in tas()
634 #define TAS(lock) tas(lock) argument
656 tas(volatile slock_t *lock) in tas()
681 #define S_UNLOCK(lock) \ argument
707 #define TAS(lock) tas(lock) argument
717 #define TAS(lock) tas(lock) argument
720 tas(volatile slock_t *lock) in tas()
762 #define S_UNLOCK(lock) \ argument
797 #define TAS_ACTIVE_WORD(lock) ((volatile int *) (((uintptr_t) (lock) + 15) & ~15)) argument
802 tas(volatile slock_t *lock) in tas()
824 #define S_UNLOCK(lock) \ argument
832 #define S_INIT_LOCK(lock) \ argument
841 #define S_LOCK_FREE(lock) (*TAS_ACTIVE_WORD(lock) != 0) argument
865 #define TAS(lock) _Asm_xchg(_SZ_W, lock, 1, _LDHINT_NONE) argument
867 #define TAS_SPIN(lock) (*(lock) ? 1 : TAS(lock)) argument
868 #define S_UNLOCK(lock) \ argument
883 #define TAS(lock) _check_lock((slock_t *) (lock), 0, 1) argument
884 #define S_UNLOCK(lock) _clear_lock((slock_t *) (lock), 0) argument
910 #define TAS(lock) (InterlockedCompareExchange(lock, 1, 0)) argument
935 #define S_UNLOCK(lock) \ argument
965 #define S_LOCK_FREE(lock) s_lock_free_sema(lock) argument
966 #define S_UNLOCK(lock) s_unlock_sema(lock) argument
967 #define S_INIT_LOCK(lock) s_init_lock_sema(lock, false) argument
968 #define TAS(lock) tas_sema(lock) argument
979 #define S_LOCK(lock) \ argument
984 #define S_LOCK_FREE(lock) (*(lock) == 0) argument
1006 #define S_UNLOCK(lock) s_unlock(lock) argument
1010 #define S_INIT_LOCK(lock) S_UNLOCK(lock) argument
1021 #define TAS(lock) tas(lock) argument
1025 #define TAS_SPIN(lock) TAS(lock) argument