[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/includes/ -> lock-install.inc (summary)

(no description)

File Size: 62 lines (1 kb)
Included or required: 1 time
Referenced: 1 time
Includes or requires: 0 files

Defines 6 functions

  lock_init()
  lock_acquire()
  lock_may_be_available()
  lock_wait()
  lock_release()
  lock_release_all()

Functions
Functions that are not part of a class:

lock_init()   X-Ref
Initialize the locking system.


lock_acquire($name, $timeout = 30.0)   X-Ref
Acquire (or renew) a lock, but do not block if it fails.

return:

lock_may_be_available($name)   X-Ref
Check if lock acquired by a different process may be available.

return:

lock_wait($name, $delay = 30)   X-Ref
Wait for a lock to be available.

return:

lock_release($name)   X-Ref
Release a lock previously acquired by lock_acquire().

This will release the named lock if it is still held by the current request.

param: $name

lock_release_all($lock_id = NULL)   X-Ref
Release all previously acquired locks.




Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7