os_eventq_remove

void
os_eventq_remove(struct os_eventq *evq, struct os_event *ev)

Removes an event from an event queue.

Arguments

ArgumentsDescription
evqEvent queue to remove the event from
evEvent to remove

Returned values

N/A

Notes

Example

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);
}