1QB_LOOP_JOB_ADD(3) libqb Programmer's Manual QB_LOOP_JOB_ADD(3)
2
3
4
6 qb_loop_job_add - Add a job to the mainloop.
7
9 #include <qb/qbloop.h>
10
11 int32_t qb_loop_job_add(
12 qb_loop_t *l,
13 enum qb_loop_priority p,
14 void *data,
15 qb_loop_job_dispatch_fn dispatch_fn
16 );
17
19 l pointer to the loop instance
20
21 p the priority
22
23 data user data passed into the dispatch function
24
25 dispatch_fn callback function
26
28 This is run in the next cycle of the loop.
29
31 enum qb_loop_priority {
32 QB_LOOP_LOW;
33 QB_LOOP_MED;
34 QB_LOOP_HIGH;
35 };
36
38 status (0 == ok, -errno == failure)
39
41 it is a one-shot job.
42
44 qb_loop_job_del(3), qb_loop_run(3), qb_loop_create(3), qb_loop_stop(3),
45 qb_loop_poll_low_fds_event_set(3), qb_loop_signal_del(3),
46 qb_loop_signal_add(3), qb_loop_poll_del(3), qb_loop_destroy(3),
47 qb_loop_timer_expire_time_remaining(3), qb_loop_poll_mod(3),
48 qb_loop_signal_mod(3), qb_loop_timer_del(3), qb_loop_timer_add(3),
49 qb_loop_timer_is_running(3), qb_loop_timer_expire_time_get(3),
50 qb_loop_poll_add(3)
51
53 Copyright (C) 2010-2020 Red Hat, Inc. All rights reserved.
54
55
56
57LIBQB 2020-07-30 QB_LOOP_JOB_ADD(3)