1GEARMAN_CLIENT_ADD_TASK_HIGH_BACKGROGUeGNaEDrA(mR3aM)nAdN_CLIENT_ADD_TASK_HIGH_BACKGROUND(3)
2
3
4

NAME

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

SYNOPSIS

10       #include <libgearman/gearman.h>
11
12       gearman_task_st               *gearman_client_add_task_background(gear‐
13       man_client_st *client,   gearman_task_st *task,   void *context,  const
14       char *function_name,   const   char *unique,   const    void *workload,
15       size_t workload_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
19       char *function_name,    const   char *unique,   const   void *workload,
20       size_t workload_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
24       char *function_name,   const   char *unique,   const    void *workload,
25       size_t workload_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  now
32       begin 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
49       error 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.18                         DecembGeErAR1M1A,N_2C0L1I7ENT_ADD_TASK_HIGH_BACKGROUND(3)
Impressum