function lock_release_all

7.x lock.inc lock_release_all($lock_id = NULL)
6.x lock.inc lock_release_all($lock_id = NULL)
6.x lock-install.inc lock_release_all($lock_id = NULL)

Release all previously acquired locks.

Related topics

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

File

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

Code

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

  $locks = array();
  if (empty($lock_id)) {
    $lock_id = _lock_id();
  }
  db_delete('semaphore')
    ->condition('value', $lock_id)
    ->execute();
}