function lock_acquire

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

Acquire (or renew) a lock, but do not block if it fails.

Return value

TRUE if the lock was acquired, FALSE if it failed.

4 calls to lock_acquire()
locale in drupal-6.x/modules/locale/locale.module
Provides interface translation services.
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.

Archivo

drupal-6.x/includes/lock-install.inc, line 23
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.

Código

function lock_acquire($name, $timeout = 30.0) {
  return TRUE;
}