summaryrefslogtreecommitdiffstats
path: root/include/monotonic.h
Commit message (Collapse)AuthorAgeFilesLines
* include: add indirect monotonic clock id specifierSami Kerola2019-01-121-0/+6
| | | | | | | Avoid repeated ifdef checks in code by adding a project specific preprocessor definition. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* lib/timer: use separate file for timersKarel Zak2015-03-061-11/+3Star
| | | | | | | | It seems that static builds require -lpthread for timer_* functions. It's better to keep it out of our libs (e.g. libmount) to avoid unnecessary dependence. Signed-off-by: Karel Zak <kzak@redhat.com>
* lib/monotonic: fix compiler warningsKarel Zak2015-03-051-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* flock: fix timeout handler pointer usageKarel Zak2015-03-051-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* flock: improve timeout handlingSami Kerola2015-03-051-0/+4
| | | | | | | | | | | | Signal ALRM raised by the timer, and the timer only, will be considered as a timeout criteria. Secondly time interval is made to use monotonic clock. Documentation of ITIMER_REAL is unclear whether that time is affected various sources of clock skew, or does it even tick when system is suspended. Reviewed-by: Karel Zak <kzak@redhat.com> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: move all around clock_gettime() to monotonic.cKarel Zak2014-11-191-0/+11
Signed-off-by: Karel Zak <kzak@redhat.com>