.\" Man page generated from reStructuredText. . . .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 .. .TH "GEARMAN_CLIENT_ADD_TASK_HIGH_BACKGROUND" "3" "Jan 31, 2024" "1.1.20+ds" "Gearmand" .SH NAME gearman_client_add_task_high_background \- Gearmand Documentation, http://gearman.info/ .SH SYNOPSIS .sp #include .INDENT 0.0 .TP .B \fI\%gearman_task_st\fP *gearman_client_add_task_background(\fI\%gearman_client_st\fP *client, \fI\%gearman_task_st\fP *task, void *context, const char *function_name, const char *unique, const void *workload, \fI\%size_t\fP workload_size, \fI\%gearman_return_t\fP *ret_ptr) .UNINDENT .INDENT 0.0 .TP .B \fI\%gearman_task_st\fP *gearman_client_add_task_high_background(\fI\%gearman_client_st\fP *client, \fI\%gearman_task_st\fP *task, void *context, const char *function_name, const char *unique, const void *workload, \fI\%size_t\fP workload_size, \fI\%gearman_return_t\fP *ret_ptr) .UNINDENT .INDENT 0.0 .TP .B \fI\%gearman_task_st\fP *gearman_client_add_task_low_background(\fI\%gearman_client_st\fP *client, \fI\%gearman_task_st\fP *task, void *context, const char *function_name, const char *unique, const void *workload, \fI\%size_t\fP workload_size, \fI\%gearman_return_t\fP *ret_ptr) .UNINDENT .sp Link with \-lgearman .SH DESCRIPTION .sp \fI\%gearman_client_add_task_background()\fP creates a background task and adds it ito the given \fI\%gearman_client_st\fP\&. Execution of the task does not begin until \fI\%gearman_client_run_tasks()\fP is called. .sp If the unique value is not set, then a unique will be assigned. .sp \fI\%gearman_client_add_task_high_background()\fP and \fI\%gearman_client_add_task_low_background()\fP are identical to \fI\%gearman_client_do()\fP, only they set the priority to either high or low. .sp \fBWARNING:\fP .INDENT 0.0 .INDENT 3.5 You may wish to avoid using \fI\%gearman_client_add_task_background()\fP with a stack based allocated \fI\%gearman_task_st\fP\&. The most common issues related to ABI safety involve stack allocated structures. If you use a stack based \fI\%gearman_task_st\fP you must free it with \fI\%gearman_task_free()\fP\&. .UNINDENT .UNINDENT .SH RETURN VALUE .sp The \fI\%gearman_task_st\fP is created and a pointer to it is returned. On error NULL is returned and ret_ptr is set with a \fI\%gearman_return_t\fP\&. .SH HOME .sp To find out more information please check: \fI\%http://gearman.info/\fP .sp \fBSEE ALSO:\fP .INDENT 0.0 .INDENT 3.5 \fBgearmand(8)\fP \fBlibgearman(3)\fP \fBgearman_task_st\fP .UNINDENT .UNINDENT .SH AUTHOR Data Differential http://www.datadifferential.com/ .SH COPYRIGHT 2011-2024, Data Differential, http://www.datadifferential.com/ .\" Generated by docutils manpage writer. .