1
.TH "GEARMAN_CLIENT_DO_HIGH_BACKGROUND" "3" "September 14, 2012" "0.38" "Gearmand"
3
gearman_client_do_high_background \- Gearmand Documentation, http://gearman.info/
5
.nr rst2man-indent-level 0
9
level \\n[rst2man-indent-level]
10
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
17
.\" .rstReportMargin pre:
19
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20
. nr rst2man-indent-level +1
21
.\" .rstReportMargin post:
25
.\" indent \\n[an-margin]
26
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27
.nr rst2man-indent-level -1
28
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
31
.\" Man page generated from reStructeredText.
35
#include <libgearman/gearman.h>
42
.B gearman_return_t gearman_client_do_background(gearman_client_st\fI\ *client\fP, const char\fI\ *function_name\fP, const char\fI\ *unique\fP, const void\fI\ *workload\fP, size_t\fI\ workload_size\fP, char\fI\ *job_handle\fP)
45
Changed in version 0.21: \fBGEARMAN_PAUSE\fP will no longer be returned. A do operation will now run until it has been submitted.
48
.B gearman_return_t gearman_client_do_high_background(gearman_client_st\fI\ *client\fP, const char\fI\ *function_name\fP, const char\fI\ *unique\fP, const void\fI\ *workload\fP, size_t\fI\ workload_size\fP, gearman_job_handle_t\fI\ job_handle\fP)
52
.B gearman_return_t gearman_client_do_low_background(gearman_client_st\fI\ *client\fP, const char\fI\ *function_name\fP, const char\fI\ *unique\fP, const void\fI\ *workload\fP, size_t\fI\ workload_size\fP, gearman_job_handle_t\fI\ job_handle\fP)
56
\fI\%gearman_client_do_background()\fP executes a single request to the
57
gearmand server and returns the status via \fBgearman_return_t\fP.
59
\fBgearman_client_add_task_high_background()\fP and \fBgearman_client_add_task_low_background()\fP are identical to
60
\fI\%gearman_client_do_background()\fP, only they set the \fI\%gearman_priority_t\fP to either high or low.
62
If job_handle is not NULL, it will be populated with the name of the job_handle
63
for the task created. The job handle needs to be the size of
64
\fBGEARMAN_JOB_HANDLE_SIZE\fP. Please see \fBgearman_job_handle_t\fP for more information.
67
\fBgearman_return_t\fP
73
# Gearman server and library
74
# Copyright (C) 2012 Data Differential, http://datadifferential.com/
75
# All rights reserved.
77
# Use and distribution licensed under the BSD license. See
78
# the COPYING file in this directory for full text.
84
#include <libgearman\-1.0/gearman.h>
88
gearman_client_st *client= gearman_client_create(NULL);
90
gearman_return_t ret= gearman_client_add_server(client, "localhost", 0);
91
if (gearman_failed(ret))
96
gearman_job_handle_t job_handle;
97
gearman_return_t rc= gearman_client_do_background(client,
100
"my string to reverse", strlen("my string to reverse"),
103
if (gearman_success(rc))
106
printf("%s\en", job_handle);
109
gearman_client_free(client);
118
To find out more information please check:
119
\fI\%http://gearman.info/\fP
122
\fIgearmand(8)\fP \fIlibgearman(3)\fP \fIgearman_strerror(3)\fP
125
Data Differential http://www.datadifferential.com/
127
2012, Data Differential, http://www.datadifferential.com/
128
.\" Generated by docutils manpage writer.