gearman_worker_register

Langue: en

Version: 381528 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

gearman_worker_register - Worker Declarations

SYNOPSIS

#include <libgearman/gearman.h>

gearman_return_t gearman_worker_register(gearman_worker_st *worker, const char *function_name, uint32_t timeout);

DESCRIPTION

Register function with job servers with an optional timeout. The timeout specifies how many seconds the server will wait before marking a job as failed. If timeout is zero, there is no timeout. *

PARAMETERS

[in]workerStructurepreviouslyinitializedwith
gearman_worker_create() or gearman_worker_clone().
[in]function_nameFunctionnametoregister.
[in]timeoutOptionaltimeout(inseconds)thatspecifiesthemaximum
time a job should. This is enforced on the job server. A value of 0 means an infinite time.

RETURN VALUE

Standard gearman return value.

SEE ALSO

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

BUGS

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

COPYING

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.