Lines Matching defs:lock
30 static inline void acquire_spinlock(spinlock_t * volatile lock)
35 "lock bts %%rax,(%0)\n\t"
37 : : "S" (lock) : "rax"
41 static inline void release_spinlock(spinlock_t * volatile lock)
43 *lock = 0;
64 static struct thread_mutex lock = THREAD_MUTEX_INITIALIZER;
66 static spinlock_t lock = 0;
70 static spinlock_t lock = 0;
72 static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
84 acquire_spinlock(&lock);
85 release_spinlock(&lock);
87 thread_mutex_lock(&lock);
88 thread_mutex_unlock(&lock);