function lock_release_all

lock_release_all($lock_id = NULL)

Release all previously acquired locks.

Related topics

File

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();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!lock.inc/function/lock_release_all/7.x