1GEARMAN_CLIENT_ADD_TASK(3)         Gearmand         GEARMAN_CLIENT_ADD_TASK(3)
2
3
4

NAME

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

SYNOPSIS

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

DESCRIPTION

29       gearman_client_add_task() creates a task and adds it to the given gear‐
30       man_client_st.  Execution  of  the  task  does  not  begin  until gear‐
31       man_client_run_tasks() is called.
32
33       If the unique value is not set, then a unique will be assigned.
34
35       gearman_client_add_task_high()  and  gearman_client_add_task_low()  are
36       identical  to gearman_client_do(), only they set the priority to either
37       high or low.
38

RETURN VALUE

40       The gearman_task_st is created and a pointer to it is returned. On  er‐
41       ror NULL is returned and ret_ptr is set with a gearman_return_t.
42

HOME

44       To find out more information please check: http://gearman.info/
45
46       SEE ALSO:
47          gearmand(8) libgearman(3)
48

AUTHOR

50       Data Differential http://www.datadifferential.com/
51
53       2011-2014, Data Differential, http://www.datadifferential.com/
54
55
56
57
581.1.20                           Nov 19, 2022       GEARMAN_CLIENT_ADD_TASK(3)
Impressum