qb_loop_job_del3
Delete a job from the mainloop.
Usage
#include <qb/qbloop.h>
int32_t qb_loop_job_del(
struct qb_loop *l, /* pointer to the loop instance */
enum qb_loop_priority p, /* the priority */
void *data, /* user data passed into the dispatch function */
qb_loop_job_dispatch_fn dispatch_fn /* callback function */
);
Params
l pointer to the loop instance
p the priority
data user data passed into the dispatch function
dispatch_fn callback function
Overview
This will try to delete the job if it hasn't run yet.
Structures
enum qb_loop_priority {
QB_LOOP_LOW;
QB_LOOP_MED;
QB_LOOP_HIGH;
};
Return value
status (0 == ok, -errno == failure)
Note
this will remove the first job that matches the parameters (priority, data, dispatch_fn).
Releases
4 releases since Debian 11 (Bullseye); the text changed 3 times.