Gearman Developer Documentation

Functions
Static Worker Declarations
Worker Declarations

Functions

static struct _worker_function_st_function_exist (gearman_worker_st *worker, const char *function_name, size_t function_length)
static gearman_worker_st_worker_allocate (gearman_worker_st *worker, bool is_clone)
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_create (gearman_worker_st *worker, const char *function_name, size_t function_length, uint32_t timeout, gearman_worker_fn *worker_fn, void *context)
static void _worker_function_free (gearman_worker_st *worker, struct _worker_function_st *function)

Function Documentation

static struct _worker_function_st* _function_exist ( gearman_worker_st worker,
const char *  function_name,
size_t  function_length 
) [static, read]

Definition at line 41 of file worker.c.

static gearman_worker_st * _worker_allocate ( gearman_worker_st worker,
bool  is_clone 
) [static]

Allocate a worker structure.

Definition at line 923 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 977 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 1001 of file worker.c.

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

Allocate and add a function to the register list.

Definition at line 1007 of file worker.c.

static void _worker_function_free ( gearman_worker_st worker,
struct _worker_function_st function 
) [static]

Free a function.

Definition at line 1082 of file worker.c.