function lock_release

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 lock.inc lock_release($name)
cle7 lock.inc lock_release($name)
elmsmedia7 lock.inc lock_release($name)
icor7 lock.inc lock_release($name)
meedjum_blog7 lock.inc lock_release($name)
mooc7 lock.inc 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.

Parameters

$name: The name of the lock.

Related topics

19 calls to lock_release()
advagg_build_aggregates in sites/all/modules/ulmus/advagg/advagg.module
Builds the requested CSS/JS aggregates.
advagg_get_current_hooks_hash in sites/all/modules/ulmus/advagg/advagg.module
Get the hash of all hooks & settings that affect aggregated files contents.
advagg_insert_update_db in sites/all/modules/ulmus/advagg/advagg.inc
Insert/Update data in advagg_files, advagg_aggregates, & advagg_aggregates_versions tables.
advagg_missing_generate in sites/all/modules/ulmus/advagg/advagg.missing.inc
Generates a missing CSS/JS file and send it to client.
advagg_update_atime in sites/all/modules/ulmus/advagg/advagg.module
Update the atime value in the advagg_aggregates_versions table.

... See full list

File

includes/lock.inc, line 247
A database-mediated implementation of a locking mechanism.

Code

function lock_release($name) {
  global $locks;

  unset($locks[$name]);
  db_delete('semaphore')->condition('name', $name)->condition('value', _lock_id())->execute();
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.