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

+1 -1
View File
@@ -1,4 +1,4 @@
noinst_PROGRAMS = signal test joystick
noinst_PROGRAMS = signal test joystick cronrun
AM_CPPFLAGS = -I$(top_srcdir)
AM_LDFLAGS = -L$(top_srcdir)
LIBS = $(LTLIBINTL)