Lines Matching defs:lock
20 * To avoid needing a per-object lock, this code allocates an array of
22 * For operations that must be atomic on two locations, the lower lock is
49 // Platform-specific lock implementation. Falls back to spinlocks if none is
51 // lock() and unlock() functions.
65 __inline static void lock(Lock *l) {
82 /// Locks a lock. In the current implementation, this is potentially
84 __inline static void lock(Lock *l) {
91 /// Unlock a lock. This is a release operation.
95 /// Locks a lock. In the current implementation, this is potentially
97 __inline static void lock(Lock *l) {
108 /// Returns a lock to use for a given pointer.
113 // lock.
125 /// Macros for determining whether a size is lock free. Clang can not yet
127 /// not lock free.
134 /// Macro that calls the compiler-generated lock-free versions of functions
169 lock(l);
183 lock(l);
201 lock(l);
222 lock(l);
245 lock(l);\
260 lock(l);\
273 lock(l);\
289 lock(l);\
310 lock(l);\