function lock_release_all

Same name in this branch
  1. 6.x drupal-6.x/includes/lock-install.inc \lock_release_all()
  2. 6.x drupal-6.x/includes/lock.inc \lock_release_all()
Same name and namespace in other branches
  1. 7.x drupal-7.x/includes/lock.inc \lock_release_all()

Release all previously acquired locks.

Related topics

1 string reference to 'lock_release_all'
_lock_id in drupal-6.x/includes/lock.inc
Helper function to get this request's unique id.

Archivo

drupal-6.x/includes/lock.inc, line 216
A database-mediated implementation of a locking mechanism.

Código

function lock_release_all($lock_id = NULL) {
  global $locks;

  $locks = array();
  if (empty($lock_id)) {
    $lock_id = _lock_id();
  }

  db_query("DELETE FROM {semaphore} WHERE value = '%s'", _lock_id());
}