Set custom memory allocation function for workloads. Normally gearman uses
the standard system malloc to allocate memory used with workloads. The
provided function will be used instead.
*
PARAMETERS
[in] gearman Structure previously initialized with gearman_create() or
gearman_clone().
[in] function Memory allocation function to use instead of malloc().
[in] context Argument to pass into the callback function.