~flameeyes/gearmand/gcc47

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
============= 
Running tasks 
============= 

-------- 
SYNOPSIS 
--------

#include <libgearman/gearman.h>

.. c:function:: gearman_return_t gearman_client_run_tasks(gearman_client_st *client)

Link with -lgearman

-----------
DESCRIPTION
-----------

:c:func:`gearman_client_run_tasks` executes one or more tasks that have
been added via :c:func:`gearman_client_add_task`,
:c:func:`gearman_client_add_task_status` or
:c:func:`gearman_client_add_task_background`.

:c:func:`gearman_client_run_tasks` can also be used with
:c:func:`gearman_execute` if either non-blocking or background tasks were
created with it.

------------
RETURN VALUE
------------

:c:type:`gearman_return_t`

If :c:type:`GEARMAN_PAUSE` is returned one of the tasks has "paused" in
order to give the caller an opportunity to take some actions (like read
data, handle an exception, etc...). See :c:type:`gearman_task_st` for more
information about the state of a task.

----
HOME
----

To find out more information please check:
`http://gearman.info/ <http://gearman.info/>`_


.. seealso::
  :manpage:`gearmand(8)` :manpage:`libgearman(3)`