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