Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 4 of 4) sorted by relevance

/memcached-1.4.29/scripts/
H A Dmemcached.sysv37 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/memcached
45 rm -f /var/lock/subsys/memcached
71 [ -f /var/lock/subsys/memcached ] && restart || :
/memcached-1.4.29/
H A Dthread.c35 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()
[all …]
/memcached-1.4.29/doc/
H A Dthreads.txt14 - A secondary small hash table of locks is used to lock an item by its hash
24 system must attempt to lock the item's bucket, which is done with a trylock
28 - Each LRU (and sub-LRU's in newer modes) has an independent lock.
31 is a short lock which covers pushing and popping free memory.
54 - If you remove the per-thread stats lock, CPU usage goes down by less than a
H A Dprotocol.txt809 lock while it iterates the items. 1.4.27 and greater are safe.