You are here

function background_process_current_handle in Background Process 8

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

Implements to Get/set current handle.

3 calls to background_process_current_handle()
background_process_keepalive in ./background_process.module
Implements to Keep process alive.
background_process_service_execute in ./background_process.module
Implements to Execute the service.
_background_process_queue in ./background_process.module
Worker callback for processing queued function call.

File

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

Code

function background_process_current_handle($handle = NULL) {
  static $current_handle = NULL;
  if (isset($handle)) {
    $current_handle = $handle;
  }
  return $current_handle;
}