1GEARMAN_ALLOCATOR_T(3) Gearmand GEARMAN_ALLOCATOR_T(3)
2
3
4
6 gearman_allocator_t - Gearmand Documentation, http://gearman.info/
7
9 #include <libgearman/gearman.h>
10
11 type gearman_allocator_t
12
13 type gearman_malloc_fn
14
15 type gearman_free_fn
16
17 type gearman_realloc_fn
18
19 type gearman_calloc_fn
20
21 gearman_return_t gearman_client_set_memory_allocators(gear‐
22 man_client_st*, gearman_malloc_fn *malloc_fn, gearman_free_fn *free_fn,
23 gearman_realloc_fn *realloc_fn, gearman_calloc_fn *calloc_fn, void
24 *context)
25
26 gearman_return_t gearman_worker_set_memory_allocators(gear‐
27 man_worker_st*, gearman_malloc_fn *malloc_fn, gearman_free_fn *free_fn,
28 gearman_realloc_fn *realloc_fn, gearman_calloc_fn *calloc_fn, void
29 *context)
30
31 Link to -lgearman
32
34 Install callbacks for custom allocation.
35
36 Normally malloc(3) and free(3) are used for allocation and releasing
37 workloads. You can use gearman_client_set_memory_allocators() and
38 gearman_worker_set_memory_allocators() to set your own custom alloca‐
39 tors.
40
42 None
43
44 SEE ALSO:
45 gearmand(8) libgearman(3) gearman_client_st(3)
46
48 Data Differential http://www.datadifferential.com/
49
51 2011-2014, Data Differential, http://www.datadifferential.com/
52
53
54
55
561.1.20 Nov 19, 2022 GEARMAN_ALLOCATOR_T(3)