function lock_release in Drupal 6
Same name in this branch
- 6 includes/lock.inc \lock_release()
- 6 includes/lock-install.inc \lock_release()
Same name and namespace in other branches
- 7 includes/lock.inc \lock_release()
Release a lock previously acquired by lock_acquire().
This will release the named lock if it is still held by the current request.
Parameters
$name: The name of the lock.
Related topics
4 calls to lock_release()
- locale in modules/
locale/ locale.module - Provides interface translation services.
- menu_rebuild in includes/
menu.inc - (Re)populate the database tables used by various menu functions.
- module_rebuild_cache in includes/
module.inc - Rebuild the database cache of module files.
- system_theme_data in modules/
system/ system.module - Collect data about all currently available themes.
File
- includes/
lock.inc, line 206 - A database-mediated implementation of a locking mechanism.
Code
function lock_release($name) {
global $locks;
unset($locks[$name]);
db_query("DELETE FROM {semaphore} WHERE name = '%s' AND value = '%s'", $name, _lock_id());
}