1 #ifndef EVE_UWORK_H_INCLUDED 2 #define EVE_UWORK_H_INCLUDED 58 #define UWORK_USEC(us) (us) 75 #define UWORK_INIT(x, callback) \ 77 .work.link.next = &(x).work.link, \ 78 .work.link.prev = &(x).work.link, \ 79 .work.cb = (work_cb_t) (callback), \ 86 #define UWORK_INIT_TYPED(x, callback) \ 87 (struct uwork_t) UWORK_INIT(x, callback) 104 #define DECLARE_UWORK(x, callback) \ 105 struct uwork_t x = UWORK_INIT(x, callback)
The code implements Dummy Headed Doubly Linked Circularlist (DHDLC) primitive.
void uwork_schedule(struct uwork_t *work)
static int dlist_is_empty(struct dlist_t *list)
void uwork_cancel(struct uwork_t *work)
Header file for the EVE work scheduling.
static bool uwork_pending(struct uwork_t *work)
void(* uwork_cb_t)(struct uwork_t *work)
uwork_time_t uwork_now(void)