| Versionen | |
|---|---|
| drupal6 | lock_release($name) |
Release a lock previously acquired by lock_acquire().
This will release the named lock if it is still held by the current request.
$name The name of the lock.
includes/
<?php
function lock_release($name) {
global $locks;
unset($locks[$name]);
db_query("DELETE FROM {semaphore} WHERE name = '%s' AND value = '%s'", $name, _lock_id());
}
?>
Kommentare
Kommentar hinzufügen