os_eventq_run

   void
    os_eventq_run(struct os_eventq *evq)

Wrapper function that calls the os_eventq_get() function to dequeue the event from the head of the event queue and then calls the callback function for the event.

Arguments

ArgumentsDescription
evqEvent queue to dequeue the event from

Returned values

None

Notes

Example

int
main(int argc, char **argv)
{

     sysinit();
       ...

     while (1) {
        os_eventq_run(os_eventq_dflt_get());
     }
}