A database-mediated implementation of a locking mechanism.

File

core/includes/lock.inc

Functions

Namesort descending 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.