Lines Matching defs:Lock
50 // defined. Each platform should define the Lock type, and corresponding
60 typedef struct _usem Lock;
61 __inline static void unlock(Lock *l) {
67 __inline static void lock(Lock *l) {
77 static Lock locks[SPINLOCK_COUNT] = {[0 ... SPINLOCK_COUNT - 1] = {0, 1, 0}};
81 typedef OSSpinLock Lock;
82 __inline static void unlock(Lock *l) { OSSpinLockUnlock(l); }
85 __inline static void lock(Lock *l) { OSSpinLockLock(l); }
86 static Lock locks[SPINLOCK_COUNT]; // initialized to OS_SPINLOCK_INIT which is 0
89 typedef _Atomic(uintptr_t) Lock;
91 __inline static void unlock(Lock *l) {
96 __inline static void lock(Lock *l) {
103 static Lock locks[SPINLOCK_COUNT];
107 static __inline Lock *lock_for_pointer(void *ptr) {
181 Lock *l = lock_for_pointer(src);
195 Lock *l = lock_for_pointer(dest);
214 Lock *l = lock_for_pointer(ptr);
235 Lock *l = lock_for_pointer(ptr);
265 Lock *l = lock_for_pointer(src); \
280 Lock *l = lock_for_pointer(dest); \
293 Lock *l = lock_for_pointer(dest); \
309 Lock *l = lock_for_pointer(ptr); \
330 Lock *l = lock_for_pointer(ptr); \