Skip to content
  • Marek Vavrusa's avatar
    3b83ceea
    First implementation of an event scheduler API. · 3b83ceea
    Marek Vavrusa authored
    Scheduler works with the same event type as evqueue_t.
    
    Example:
    evsched_t *s = evsched_new();
    evsched_schedule_cb(s, myfunc, data, 1000) // Schedule myfunc() after 1000ms
    event_t *ev = evsched_next(); // Run event scheduler
    evsched_event_free(s, ev); // Free executed event
    evsched_delete(s);
    
    Commit refs #799.
    3b83ceea
    First implementation of an event scheduler API.
    Marek Vavrusa authored
    Scheduler works with the same event type as evqueue_t.
    
    Example:
    evsched_t *s = evsched_new();
    evsched_schedule_cb(s, myfunc, data, 1000) // Schedule myfunc() after 1000ms
    event_t *ev = evsched_next(); // Run event scheduler
    evsched_event_free(s, ev); // Free executed event
    evsched_delete(s);
    
    Commit refs #799.
Loading