function background_process_start_locked in Background Process 8
Same name and namespace in other branches
- 6 background_process.module \background_process_start_locked()
- 7.2 background_process.module \background_process_start_locked()
- 7 background_process.module \background_process_start_locked()
Implements to Start locked background process.
File
- ./
background_process.module, line 349 - This module implements a framework for calling funtions in the background.
Code
function background_process_start_locked($handle, $callback) {
$process = new BackgroundProcess($handle);
$args = func_get_args();
array_splice($args, 0, 2);
$result = $process
->start($callback, $args);
return $result ? $process->handle : $result;
}