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.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.