Lines Matching defs:Lock
48 // defined. Each platform should define the Lock type, and corresponding
56 typedef struct _usem Lock;
57 inline static void unlock(Lock *l) {
63 inline static void lock(Lock *l) {
72 static Lock locks[SPINLOCK_COUNT] = { [0 ... SPINLOCK_COUNT-1] = {0,1,0} };
74 typedef _Atomic(uintptr_t) Lock;
76 inline static void unlock(Lock *l) {
81 inline static void lock(Lock *l) {
88 static Lock locks[SPINLOCK_COUNT];
93 static inline Lock *lock_for_pointer(void *ptr) {
152 Lock *l = lock_for_pointer(src);
166 Lock *l = lock_for_pointer(dest);
184 Lock *l = lock_for_pointer(ptr);
205 Lock *l = lock_for_pointer(ptr);
228 Lock *l = lock_for_pointer(src);\
243 Lock *l = lock_for_pointer(dest);\
256 Lock *l = lock_for_pointer(dest);\
272 Lock *l = lock_for_pointer(ptr);\
293 Lock *l = lock_for_pointer(ptr);\