Beispiel #1
0
static void *
_timer(void *arg)
{
        while (run) {
                timer_dispatch();
                usleep(1000);
        }

        return NULL;
}
Beispiel #2
0
void
irq_poll(void)
{
    if (!timespec_is_before(timespec_read(), next_wake_time))
        timer_dispatch();
}