Lines Matching refs:lock
61 pthread_mutex_t lock; member
122 pthread_mutex_t *lock = &item_locks[hv & hashmask(item_lock_hashpower)]; in item_trylock() local
123 if (pthread_mutex_trylock(lock) == 0) { in item_trylock()
124 return lock; in item_trylock()
129 void item_trylock_unlock(void *lock) { in item_trylock_unlock() argument
130 mutex_unlock((pthread_mutex_t *) lock); in item_trylock_unlock()
274 pthread_mutex_init(&cq->lock, NULL); in cq_init()
291 pthread_mutex_lock(&cq->lock); in cq_pop()
296 pthread_mutex_unlock(&cq->lock); in cq_pop()
305 pthread_mutex_lock(&cq->lock); in cq_push()
307 pthread_mutex_unlock(&cq->lock); in cq_push()