void os_eventq_remove(struct os_eventq *evq, struct os_event *ev)
Removes an event from an event queue.
Arguments | Description |
---|---|
evq | Event queue to remove the event from |
ev | Event to remove |
N/A
void os_callout_stop(struct os_callout *c) { os_sr_t sr; OS_ENTER_CRITICAL(sr); if (os_callout_queued(c)) { TAILQ_REMOVE(&g_callout_list, c, c_next); c->c_next.tqe_prev = NULL; } if (c->c_evq) { os_eventq_remove(c->c_evq, &c->c_ev); } OS_EXIT_CRITICAL(sr); }