Rechercher une page de manuel
gearman_client_add_task
Langue: en
Version: 373488 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
NAME
gearman_client_add_task - Concurrent Task InterfaceSYNOPSIS
#include <libgearman/gearman.h>gearman_task_st *gearman_client_add_task(gearman_client_st *client, gearman_task_st *task, void *context, const char *function_name, const char *unique, const void *workload, size_t workload_size, gearman_return_t *ret_ptr);
DESCRIPTION
Add a task to be run in parallel. *PARAMETERS
- [in]clientStructurepreviouslyinitializedwith
- gearman_client_create() or gearman_client_clone().
- [in]taskCallerallocatedstructure,orNULLtoallocateone.
- [in]contextApplicationcontexttoassociatewiththetask.
- [in]function_nameThenameofthefunctiontorun.
- [in]uniqueOptionaluniquejobidentifier,orNULLforanewUUID.
- [in]workloadTheworkloadtopasstothefunctionwhenitisrun.
- [in]workload_sizeSizeoftheworkload.
- [out]ret_ptrStandardgearmanreturnvalue.
RETURN VALUE
On success, a pointer to the (possibly allocated) structure. On failure this will be NULL.SEE ALSO
The Gearman homepage: http://www.gearman.org/BUGS
Bugs should be reported at https://bugs.launchpad.net/gearmandCOPYING
Copyright (C) 2008 Brian Aker, Eric Day. All rights reserved.Use and distribution licensed under the BSD license. See the COPYING file in the original source for full text.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre