lock.inc

A database-mediated implementation of a locking mechanism.

File

includes/lock.inc

Functions

Name Description
lock_acquire Acquire (or renew) a lock, but do not block if it fails.
lock_initialize Initialize the locking system.
lock_may_be_available Check if lock acquired by a different process may be available.
lock_release Release a lock previously acquired by lock_acquire().
lock_release_all Release all previously acquired locks.
lock_wait Wait for a lock to be available.
_lock_id Helper function to get this request's unique id.

© 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/7.x