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