1
.TH "GEARMAN_WORKER_SET_MEMORY_ALLOCATORS" "3" "September 14, 2012" "0.38" "Gearmand"
3
gearman_worker_set_memory_allocators \- Gearmand Documentation, http://gearman.info/
5
.nr rst2man-indent-level 0
9
level \\n[rst2man-indent-level]
10
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
17
.\" .rstReportMargin pre:
19
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20
. nr rst2man-indent-level +1
21
.\" .rstReportMargin post:
25
.\" indent \\n[an-margin]
26
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27
.nr rst2man-indent-level -1
28
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
31
.\" Man page generated from reStructeredText.
35
#include <libgearman/gearman.h>
38
.B gearman_allocator_t
58
.B gearman_return_t gearman_client_set_memory_allocators(gearman_client_st\fI\ *\fP, \fI\%gearman_malloc_fn\fP\fI\ *malloc_fn\fP, \fI\%gearman_free_fn\fP\fI\ *free_fn\fP, \fI\%gearman_realloc_fn\fP\fI\ *realloc_fn\fP, \fI\%gearman_calloc_fn\fP\fI\ *calloc_fn\fP, void\fI\ *context\fP)
62
.B gearman_return_t gearman_worker_set_memory_allocators(gearman_worker_st\fI\ *\fP, \fI\%gearman_malloc_fn\fP\fI\ *malloc_fn\fP, \fI\%gearman_free_fn\fP\fI\ *free_fn\fP, \fI\%gearman_realloc_fn\fP\fI\ *realloc_fn\fP, \fI\%gearman_calloc_fn\fP\fI\ *calloc_fn\fP, void\fI\ *context\fP)
68
Install callbacks for custom allocation.
70
Normally \fImalloc(3)\fP and \fIfree(3)\fP are used for allocation and releasing workloads. You can use \fI\%gearman_client_set_memory_allocators()\fP and \fI\%gearman_worker_set_memory_allocators()\fP to set your own custom allocators.
77
\fIgearmand(8)\fP \fIlibgearman(3)\fP \fIgearman_client_st(3)\fP
79
Data Differential http://www.datadifferential.com/
81
2012, Data Differential, http://www.datadifferential.com/
82
.\" Generated by docutils manpage writer.