lock_release

  1. drupal
    1. drupal6
Versionen
drupal6 lock_release($name)

Release a lock previously acquired by lock_acquire().

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

Übergabeparameter

$name The name of the lock.

Verwandte Themen

▾ 2 functions call lock_release()

locale in modules/locale/locale.module
Provides interface translation services.
menu_rebuild in includes/menu.inc
(Re)populate the database tables used by various menu functions.

Code

includes/lock.inc, line 206

<?php
function lock_release($name) {
  global $locks;

  unset($locks[$name]);
  db_query("DELETE FROM {semaphore} WHERE name = '%s' AND value = '%s'", $name, _lock_id());
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen