function _background_process_cleanup_locks in Background Process 8
Same name and namespace in other branches
- 6 background_process.module \_background_process_cleanup_locks()
- 7 background_process.module \_background_process_cleanup_locks()
Implements to Shutdown handler for removing locks.
1 string reference to '_background_process_cleanup_locks'
- _background_process_ensure_cleanup in ./
background_process.module - Implements to Ensure lock is removed at end of request.
File
- ./
background_process.module, line 1296 - This module implements a framework for calling funtions in the background.
Code
function _background_process_cleanup_locks() {
$handles =& drupal_static('background_process_handles_locked', NULL);
if (!empty($handles)) {
foreach ($handles as $handle) {
background_process_remove_process($handle);
}
}
}