cron: New API for absolute timers

This patch adds support for at/cron-like jobs that need an absolute
timer.  The API supports waking up with an UEV_HUP callback event if the
wall clock changed due to NTP or user input while waiting.

- uev_cron_init()
- uev_cron_set()
- uev_cron_start()
- uev_cron_stop()

A very simple cronrun example/test program is also included.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2016-10-30 15:08:34 +01:00
1 parent 52d8d7109b
commit 59e1d376db
9 files changed
+301 -15

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
joystick
signal
cronrun
test