You are here

function background_process_queue_locked in Background Process 8

Same name and namespace in other branches
  1. 6 background_process.module \background_process_queue_locked()
  2. 7.2 background_process.module \background_process_queue_locked()
  3. 7 background_process.module \background_process_queue_locked()

Implements to Queue locked background process.

File

./background_process.module, line 370
This module implements a framework for calling funtions in the background.

Code

function background_process_queue_locked($handle, $callback) {
  $process = new BackgroundProcess($handle);
  $args = func_get_args();
  array_splice($args, 0, 2);
  return $process
    ->queue($callback, $args);
}