Lines Matching refs:Lock
61 typedef pthread_mutex_t Lock; typedef
63 __inline static void unlock(Lock *l) { pthread_mutex_unlock(l); } in unlock()
65 __inline static void lock(Lock *l) { pthread_mutex_lock(l); } in lock()
67 static Lock locks[SPINLOCK_COUNT];
76 typedef struct _usem Lock; typedef
77 __inline static void unlock(Lock *l) { in unlock()
83 __inline static void lock(Lock *l) { in lock()
93 static Lock locks[SPINLOCK_COUNT] = {[0 ... SPINLOCK_COUNT - 1] = {0, 1, 0}};
97 typedef OSSpinLock Lock; typedef
98 __inline static void unlock(Lock *l) { OSSpinLockUnlock(l); } in unlock()
101 __inline static void lock(Lock *l) { OSSpinLockLock(l); } in lock()
102 static Lock locks[SPINLOCK_COUNT]; // initialized to OS_SPINLOCK_INIT which is 0
107 typedef _Atomic(uintptr_t) Lock; typedef
109 __inline static void unlock(Lock *l) { in unlock()
114 __inline static void lock(Lock *l) { in lock()
121 static Lock locks[SPINLOCK_COUNT];
125 static __inline Lock *lock_for_pointer(void *ptr) { in lock_for_pointer()
194 Lock *l = lock_for_pointer(src); in __atomic_load_c()
208 Lock *l = lock_for_pointer(dest); in __atomic_store_c()
227 Lock *l = lock_for_pointer(ptr); in __atomic_compare_exchange_c()
248 Lock *l = lock_for_pointer(ptr); in __atomic_exchange_c()
278 Lock *l = lock_for_pointer(src); \
293 Lock *l = lock_for_pointer(dest); \
306 Lock *l = lock_for_pointer(dest); \
322 Lock *l = lock_for_pointer(ptr); \
343 Lock *l = lock_for_pointer(ptr); \
355 Lock *l = lock_for_pointer(ptr); \