lock.inc

Version 1.1 (checked in on 2009/08/17 at 20:32:29 by dries)

A database-mediated implementation of a locking mechanism.

Functions

NameDescription
lock_acquireAcquire (or renew) a lock, but do not block if it fails.
lock_initializeInitialize the locking system.
lock_may_be_availableCheck if lock acquired by a different process may be available.
lock_releaseRelease a lock previously acquired by lock_acquire().
lock_release_allRelease all previously acquired locks.
lock_waitWait for a lock to be available.
_lock_idHelper function to get this request's unique id.
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.