Rechercher une page de manuel
gearman_worker_grab_job
Langue: en
Version: 375378 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
NAME
gearman_worker_grab_job - Worker DeclarationsSYNOPSIS
#include <libgearman/gearman.h>gearman_job_st *gearman_worker_grab_job(gearman_worker_st *worker, gearman_job_st *job, gearman_return_t *ret_ptr);
DESCRIPTION
Get a job from one of the job servers. This does not used the callback interface below, which means results must be sent back to the job server manually. It is also the responsibility of the caller to free the job once it has been completed. *PARAMETERS
- [in]workerStructurepreviouslyinitializedwith
- gearman_worker_create() or gearman_worker_clone().
- [in]jobCallerallocatedstructure,orNULLtoallocateone.
- [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