Lines Matching refs:lock
35 pthread_mutex_t lock; member
126 pthread_mutex_t *lock = &item_locks[hv & hashmask(item_lock_hashpower)]; in item_trylock() local
127 if (pthread_mutex_trylock(lock) == 0) { in item_trylock()
128 return lock; in item_trylock()
133 void item_trylock_unlock(void *lock) { in item_trylock_unlock() argument
134 mutex_unlock((pthread_mutex_t *) lock); in item_trylock_unlock()
206 pthread_mutex_init(&cq->lock, NULL); in cq_init()
219 pthread_mutex_lock(&cq->lock); in cq_pop()
226 pthread_mutex_unlock(&cq->lock); in cq_pop()
237 pthread_mutex_lock(&cq->lock); in cq_push()
243 pthread_mutex_unlock(&cq->lock); in cq_push()