function lock_wait

7.x lock.inc lock_wait($name, $delay = 30)
6.x lock.inc lock_wait($name, $delay = 30)
6.x lock-install.inc lock_wait($name, $delay = 30)

Wait for a lock to be available.

Return value

TRUE if the lock holds, FALSE if it is available.

3 calls to lock_wait()
menu_rebuild in drupal-6.x/includes/menu.inc
(Re)populate the database tables used by various menu functions.
module_rebuild_cache in drupal-6.x/includes/module.inc
Rebuild the database cache of module files.
system_theme_data in drupal-6.x/modules/system/system.module
Collect data about all currently available themes.

File

drupal-6.x/includes/lock-install.inc, line 43
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_wait($name, $delay = 30) {
  return FALSE;
}