You are here

function lock_may_be_available in Drupal 6

Same name in this branch
  1. 6 includes/lock.inc \lock_may_be_available()
  2. 6 includes/lock-install.inc \lock_may_be_available()
Same name and namespace in other branches
  1. 7 includes/lock.inc \lock_may_be_available()

Check if lock acquired by a different process may be available.

Return value

TRUE if there is no lock or it was removed, FALSE otherwise.

2 calls to lock_may_be_available()
lock_acquire in includes/lock.inc
Acquire (or renew) a lock, but do not block if it fails.
lock_wait in includes/lock.inc
Wait for a lock to be available.

File

includes/lock-install.inc, line 33
A stub lock implementation to be used during the installation process when database access is not yet available. Because Drupal's install system should never be running in more than on concurrant request, we can bypass any need for locking.

Code

function lock_may_be_available($name) {
  return TRUE;
}