1gearman_worker_grab_job(3)          Gearman         gearman_worker_grab_job(3)
2
3
4

NAME

6       gearman_worker_grab_job - Worker Declarations
7

SYNOPSIS

9       #include <libgearman/gearman.h>
10
11          gearman_job_st  *gearman_worker_grab_job(gearman_worker_st  *worker,
12       gearman_job_st *job,  gearman_return_t *ret_ptr);
13

DESCRIPTION

15       Get a job from one of the job servers. This does not used the  callback
16       interface  below,  which  means  results  must  be sent back to the job
17       server manually. It is also the responsibility of the  caller  to  free
18       the job once it has been completed.  *
19

PARAMETERS

21              [in]   worker   Structure   previously  initialized  with  gear‐
22              man_worker_create() or gearman_worker_clone().
23
24              [in] job Caller allocated structure, or NULL to allocate one.
25
26              [out] ret_ptr Standard gearman return value.
27

RETURN VALUE

29       On success, a pointer to the (possibly allocated) structure. On failure
30       this will be NULL.
31

SEE ALSO

33       The Gearman homepage: http://www.gearman.org/
34

BUGS

36       Bugs should be reported at https://bugs.launchpad.net/gearmand
37

COPYING

39       Copyright (C) 2008 Brian Aker, Eric Day. All rights reserved.
40
41       Use  and  distribution  licensed under the BSD license. See the COPYING
42       file in the original source for full text.
43
44
45
46Gearman                           2010-03-15        gearman_worker_grab_job(3)
Impressum