Skip to main content
Hostdog docs
Documentation & API reference
Main menu
Drupal 7
Drupal 8
Drupal 9
You are here
Home
»
API reference
»
Drupal 7.x
»
lock.inc
Search Drupal 7.x
Function, class, file, topic, etc.
*
Partial match search is supported
API Navigation
Drupal 7.x
Topics
Classes
Functions
Files
Namespaces
Constants
Globals
function lock_initialize
Initialize the locking system.
Related topics
Locking mechanisms
Functions to coordinate long-running operations across requests.
1 call to lock_initialize()
_drupal_bootstrap_variables
in drupal/
includes/
bootstrap.inc
Loads system variables and all enabled bootstrap modules.
File
drupal/
includes/
lock.inc
, line 67
A database-mediated implementation of a locking mechanism.
Code
function
lock_initialize
() {
global
$locks
;
$locks
=
array
(); }