1GEARMAN_CLIENT_ADD_TASK(3) Gearmand GEARMAN_CLIENT_ADD_TASK(3)
2
3
4
6 gearman_client_add_task - Gearmand Documentation, http://gearman.info/
7
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, gear‐
14 man_return_t *ret_ptr)
15
16 gearman_task_st *gearman_client_add_task_high(gear‐
17 man_client_st *client, gearman_task_st *task, void *context, const
18 char *function_name, const char *unique, const void *workload,
19 size_t workload_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, gear‐
24 man_return_t *ret_ptr)
25
26 Link with -lgearman
27
29 gearman_client_add_task() creates a task and adds it to the given gear‐
30 man_client_st. Execution of the task does now 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
40 The gearman_task_st is created and a pointer to it is returned. On
41 error NULL is returned and ret_ptr is set with a gearman_return_t.
42
44 To find out more information please check: http://gearman.info/
45
46 SEE ALSO:
47 gearmand(8) libgearman(3)
48
50 Data Differential http://www.datadifferential.com/
51
53 2011-2014, Data Differential, http://www.datadifferential.com/
54
55
56
57
581.1.18 December 11, 2017 GEARMAN_CLIENT_ADD_TASK(3)