Gearman Developer Documentation

Private Worker Functions
[Worker Interface]

Functions

static gearman_worker_st_worker_allocate (gearman_worker_st *worker)
static gearman_return_t _worker_packet_init (gearman_worker_st *worker)
static gearman_return_t _worker_add_server (const char *host, in_port_t port, void *context)
static gearman_return_t _worker_function_add (gearman_worker_st *worker, const char *function_name, uint32_t timeout, gearman_worker_fn *worker_fn, const void *context)
static void _worker_function_free (gearman_worker_st *worker, gearman_worker_function_st *function)
static gearman_job_st_job_create (gearman_worker_st *worker, gearman_job_st *job)

Function Documentation

static gearman_worker_st * _worker_allocate ( gearman_worker_st worker  )  [static]

Allocate a worker structure.

Definition at line 805 of file worker.c.

static gearman_return_t _worker_packet_init ( gearman_worker_st worker  )  [static]

Initialize common packets for later use.

Definition at line 835 of file worker.c.

static gearman_return_t _worker_add_server ( const char *  host,
in_port_t  port,
void *  context 
) [static]

Callback function used when parsing server lists.

Definition at line 859 of file worker.c.

static gearman_return_t _worker_function_add ( gearman_worker_st worker,
const char *  function_name,
uint32_t  timeout,
gearman_worker_fn worker_fn,
const void *  context 
) [static]

Allocate and add a function to the register list.

Definition at line 865 of file worker.c.

static void _worker_function_free ( gearman_worker_st worker,
gearman_worker_function_st function 
) [static]

Free a function.

Definition at line 933 of file worker.c.

static gearman_job_st * _job_create ( gearman_worker_st worker,
gearman_job_st job 
) [static]

Initialize a job structure.

Definition at line 951 of file worker.c.


Generated on Tue Oct 13 20:19:22 2009 by  doxygen 1.6.1