1GEARMAN_CLIENT_ADD_TASK_BACKGROUND(3G)earmanGdEARMAN_CLIENT_ADD_TASK_BACKGROUND(3)
2
3
4

NAME

6       gearman_client_add_task_background     -     Gearmand    Documentation,
7       http://gearman.info/
8

SYNOPSIS

10       #include <libgearman/gearman.h>
11
12       gearman_task_st   *gearman_client_add_task_background(gearman_client_st
13       *client,  gearman_task_st  *task,  void  *context,  const  char  *func‐
14       tion_name, const char  *unique,  const  void  *workload,  size_t  work‐
15       load_size, gearman_return_t *ret_ptr)
16
17       gearman_task_st          *gearman_client_add_task_high_background(gear‐
18       man_client_st *client, gearman_task_st *task, void *context, const char
19       *function_name,  const char *unique, const void *workload, size_t work‐
20       load_size, gearman_return_t *ret_ptr)
21
22       gearman_task_st           *gearman_client_add_task_low_background(gear‐
23       man_client_st *client, gearman_task_st *task, void *context, const char
24       *function_name, const char *unique, const void *workload, size_t  work‐
25       load_size, gearman_return_t *ret_ptr)
26
27       Link with -lgearman
28

DESCRIPTION

30       gearman_client_add_task_background() creates a background task and adds
31       it ito the given gearman_client_st. Execution of the task does not  be‐
32       gin until gearman_client_run_tasks() is called.
33
34       If the unique value is not set, then a unique will be assigned.
35
36       gearman_client_add_task_high_background()                           and
37       gearman_client_add_task_low_background()   are   identical   to   gear‐
38       man_client_do(), only they set the priority to either high or low.
39
40       WARNING:
41          You  may  wish  to  avoid using gearman_client_add_task_background()
42          with a stack based allocated gearman_task_st. The most common issues
43          related to ABI safety involve stack allocated structures. If you use
44          a  stack  based  gearman_task_st  you  must  free  it   with   gear‐
45          man_task_free().
46

RETURN VALUE

48       The  gearman_task_st is created and a pointer to it is returned. On er‐
49       ror NULL is returned and ret_ptr is set with a gearman_return_t.
50

HOME

52       To find out more information please check: http://gearman.info/
53
54       SEE ALSO:
55          gearmand(8) libgearman(3) gearman_task_st
56

AUTHOR

58       Data Differential http://www.datadifferential.com/
59
61       2011-2014, Data Differential, http://www.datadifferential.com/
62
63
64
65
661.1.20                           Nov 19, 2G0E2A2RMAN_CLIENT_ADD_TASK_BACKGROUND(3)
Impressum