1GEARMAN_WORKER_SET_MEMORY_ALLOCATORSG(e3a)rmGaEnAdRMAN_WORKER_SET_MEMORY_ALLOCATORS(3)
2
3
4

NAME

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

SYNOPSIS

10       #include <libgearman/gearman.h>
11
12       gearman_allocator_t
13
14       gearman_malloc_fn
15
16       gearman_free_fn
17
18       gearman_realloc_fn
19
20       gearman_calloc_fn
21
22       gearman_return_t             gearman_client_set_memory_allocators(gear‐
23       man_client_st *,                          gearman_malloc_fn *malloc_fn,
24       gearman_free_fn *free_fn,               gearman_realloc_fn *realloc_fn,
25       gearman_calloc_fn *calloc_fn, void *context)
26
27       gearman_return_t             gearman_worker_set_memory_allocators(gear‐
28       man_worker_st *,                          gearman_malloc_fn *malloc_fn,
29       gearman_free_fn *free_fn,               gearman_realloc_fn *realloc_fn,
30       gearman_calloc_fn *calloc_fn, void *context)
31
32       Link to -lgearman
33

DESCRIPTION

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

RETURN VALUE

43       None
44
45       SEE ALSO:
46          gearmand(8) libgearman(3) gearman_client_st(3)
47

AUTHOR

49       Data Differential http://www.datadifferential.com/
50
52       2011-2014, Data Differential, http://www.datadifferential.com/
53
54
55
56
571.1.19.1                         Feb 18,GE2A0R2M0AN_WORKER_SET_MEMORY_ALLOCATORS(3)
Impressum