1gearman_client_add_task(3) Gearman gearman_client_add_task(3)
2
3
4
6 gearman_client_add_task - Concurrent Task Interface
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,
13 const char *unique, const void *workload, size_t workload_size,
14 gearman_return_t *ret_ptr);
15
17 Add a task to be run in parallel. *
18
20 [in] client Structure previously initialized with gear‐
21 man_client_create() or gearman_client_clone().
22
23 [in] task Caller allocated structure, or NULL to allocate one.
24
25 [in] context Application context to associate with the task.
26
27 [in] function_name The name of the function to run.
28
29 [in] unique Optional unique job identifier, or NULL for a new
30 UUID.
31
32 [in] workload The workload to pass to the function when it is
33 run.
34
35 [in] workload_size Size of the workload.
36
37 [out] ret_ptr Standard gearman return value.
38
40 On success, a pointer to the (possibly allocated) structure. On failure
41 this will be NULL.
42
44 The Gearman homepage: http://www.gearman.org/
45
47 Bugs should be reported at https://bugs.launchpad.net/gearmand
48
50 Copyright (C) 2008 Brian Aker, Eric Day. All rights reserved.
51
52 Use and distribution licensed under the BSD license. See the COPYING
53 file in the original source for full text.
54
55
56
57Gearman 2010-03-15 gearman_client_add_task(3)