logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

gearman_client_set_memory_allocators - Gearmand Documentation, http://gearman.info/

Author

Description

       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.

Name

       gearman_client_set_memory_allocators - Gearmand Documentation, http://gearman.info/

Return Value

       None

       SEEALSO:gearmand(8)libgearman(3)gearman_client_st(3)

Synopsis

       #include <libgearman/gearman.h>

       typegearman_allocator_ttypegearman_malloc_fntypegearman_free_fntypegearman_realloc_fntypegearman_calloc_fngearman_return_tgearman_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_tgearman_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

See Also