~mordred/gearmand/cancel-job

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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
.TH "GEARMAN_WORKER_CREATE" "3" "May 03, 2012" "0.33" "Gearmand"
.SH NAME
gearman_worker_create \- Gearmand Documentation, http://gearman.info/
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.\" Man page generated from reStructeredText.
.
.SH SYNOPSIS
.sp
#include <libgearman/gearman.h>
.INDENT 0.0
.TP
.B gearman_worker_st *gearman_worker_create(gearman_worker_st\fI\ *client\fP)
.UNINDENT
.INDENT 0.0
.TP
.B gearman_worker_st *gearman_worker_clone(gearman_worker_st\fI\ *client\fP, const gearman_worker_st\fI\ *from\fP)
.UNINDENT
.INDENT 0.0
.TP
.B void gearman_worker_free(gearman_worker_st\fI\ *client\fP)
.UNINDENT
.sp
Link with \-lgearman
.SH DESCRIPTION
.sp
gearman_worker_create() is used to create a \fBgearman_worker_st\fP  structure that will then
be used by other libgearman(3) client functions to communicate with the server. You
should either pass a statically declared \fBgearman_worker_st\fP  to gearman_worker_create) or
a NULL. If a NULL passed in then a structure is allocated for you.
.sp
\fI\%gearman_worker_clone()\fP is similar to \fI\%gearman_worker_create()\fP but it copies the
defaults and list of servers from the source \fBgearman_worker_st\fP. If you pass a null as
the argument for the source to clone, it is the same as a call to gearman_worker_create().
If the destination argument is NULL a \fBgearman_worker_st\fP  will be allocated for you.
.sp
To clean up memory associated with a \fBgearman_worker_st\fP  structure you should pass
it to \fI\%gearman_worker_free()\fP when you are finished using it. \fI\%gearman_worker_free\fP is
the only way to make sure all memory is deallocated when you finish using
the structure.
.sp
You may wish to avoid using \fI\%gearman_worker_create()\fP or \fI\%gearman_worker_clone()\fP with a
stack based allocation, ie the first parameter. The most common issues related to ABI safety involve
heap allocated structures.
.SH RETURN VALUE
.sp
\fI\%gearman_worker_create()\fP returns a pointer to the \fBgearman_worker_st\fP that was created
(or initialized). On an allocation failure, it returns NULL.
.sp
\fI\%gearman_worker_clone()\fP returns a pointer to the \fBgearman_worker_st\fP that was created
(or initialized). On an allocation failure, it returns NULL.
.SH HOME
.sp
To find out more information please check:
\fI\%http://gearman.info/\fP
.IP "See also"
.sp
\fIgearmand(8)\fP \fIlibgearman(3)\fP \fIgearman_strerror(3)\fP
.RE
.SH AUTHOR
Data Differential http://www.datadifferential.com/
.SH COPYRIGHT
2012, Data Differential, http://www.datadifferential.com/
.\" Generated by docutils manpage writer.
.\" 
.