3
3
gearman_worker_set_workload_free \- Worker Interface
5
5
.B #include <libgearman/gearman.h>
7
.BI " void gearman_worker_set_workload_malloc(gearman_worker_st " *worker ", gearman_malloc_fn " *workload_malloc ", const void *workload_malloc_arg); /** * Set custom memory free function for workloads. Normally gearman uses the * standard system free to free memory used with workloads. This function * is used instead. * @param worker Worker structure previously initialized with * gearman_worker_create or gearman_worker_clone. * @param workload_free Memory free function to replace free(). * @param workload_free_arg Argument to pass along to workload_free. */ void gearman_worker_set_workload_free(gearman_worker_st " *worker ", gearman_free_fn " *workload_free ", const void *workload_free_arg);"
7
.BI "void gearman_worker_set_workload_malloc(gearman_worker_st " *worker ", gearman_malloc_fn " *workload_malloc ", const void *workload_malloc_arg); /** * Set custom memory free function for workloads. Normally gearman uses the * standard system free to free memory used with workloads. This function * is used instead. * @param worker Worker structure previously initialized with * gearman_worker_create or gearman_worker_clone. * @param workload_free Memory free function to replace free(). * @param workload_free_arg Argument to pass along to workload_free. */void gearman_worker_set_workload_free(gearman_worker_st " *worker ", gearman_free_fn " *workload_free ", const void *workload_free_arg);"
9
9
Set custom memory allocation function for workloads. Normally gearman uses
10
10
the standard system malloc to allocate memory used with workloads. This