gearman_allocator_t(3)

gearman_allocator_t3

Gearmand documentation, https://gearman.org/gearmand/

Usage

#include <libgearman/gearman.h>

type gearman_allocator_t
type gearman_malloc_fn
type gearman_free_fn
type gearman_realloc_fn
type gearman_calloc_fn
gearman_return_t gearman_client_set_memory_allocators(gearman_client_st*, gearman_malloc_fn *malloc_fn, gearman_free_fn *free_fn, gearman_realloc_fn *realloc_fn, gearman_calloc_fn *calloc_fn, void *context)
gearman_return_t gearman_worker_set_memory_allocators(gearman_worker_st*, gearman_malloc_fn *malloc_fn, gearman_free_fn *free_fn, gearman_realloc_fn *realloc_fn, gearman_calloc_fn *calloc_fn, void *context)

Link to -lgearman

Overview

Install callbacks for custom allocation.

Normally malloc(3) and free(3) are used for allocation and releasing workloads. You can use gearman_client_set_memory_allocators() and gearman_worker_set_memory_allocators() to set your own custom allocators.

Return value

None

SEE ALSO:

Releases

8 releases since Debian 7 (Wheezy); the text changed 6 times.

  1. 7
  2. 8–9
  3. 10
  4. 11
  5. 12
  6. 13
  7. Arch

Author

Data Differential http://www.datadifferential.com/

From gearmand 2.2.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.