function background_process_current_handle in Background Process 6
Same name and namespace in other branches
- 8 background_process.module \background_process_current_handle()
- 7.2 background_process.module \background_process_current_handle()
- 7 background_process.module \background_process_current_handle()
Get/set current handle.
@staticvar $current_handle
Parameters
$handle:
Return value
string Current handle.
3 calls to background_process_current_handle()
- background_process_keepalive in ./
background_process.module - Keep the current background process alive (meaning restart it when it exits)
- background_process_service_execute in ./
background_process.module - Execute the service
- _background_process_queue in ./
background_process.module - Worker callback for processing queued function call
File
- ./
background_process.module, line 385
Code
function background_process_current_handle($handle = NULL) {
static $current_handle = NULL;
if (isset($handle)) {
$current_handle = $handle;
}
return $current_handle;
}