function _apdqc_lock_release_all in Asynchronous Prefetch Database Query Cache 7
Same name in this branch
- 7 apdqc.lock.apc.inc \_apdqc_lock_release_all()
- 7 apdqc.lock.db.inc \_apdqc_lock_release_all()
- 7 apdqc.lock.memcache_storage.inc \_apdqc_lock_release_all()
- 7 apdqc.lock.memcache.inc \_apdqc_lock_release_all()
- 7 apdqc.lock.redis.inc \_apdqc_lock_release_all()
Release all locks acquired by this request.
1 call to _apdqc_lock_release_all()
- apdqc.lock.inc in ./
apdqc.lock.inc - A database-mediated implementation of a locking mechanism.
1 string reference to '_apdqc_lock_release_all'
- apdqc.lock.inc in ./
apdqc.lock.inc - A database-mediated implementation of a locking mechanism.
File
- ./
apdqc.lock.memcache.inc, line 160 - A memcache based implementation of a locking mechanism.
Code
function _apdqc_lock_release_all($lock_id = NULL) {
global $locks;
foreach ($locks as $name => $id) {
$value = dmemcache_get($name, 'semaphore');
if ($value == $id) {
dmemcache_delete($name, 'semaphore');
}
}
}