chiark / gitweb /
sd-event: permit a USEC_INFINITY timeout as an alternative to a disabling an event...
authorLennart Poettering <lennart@poettering.net>
Sun, 31 Jan 2016 23:20:18 +0000 (00:20 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 17 May 2017 13:22:15 +0000 (15:22 +0200)
commit8d20404363bab2f394e583a0902ba4d3fdda453a
tree2213490bb5986ecfd6c2b305ff2f9fa5c614b8bc
parent91662cfb8364703fee7c698f503a0f3ab3142c8b
sd-event: permit a USEC_INFINITY timeout as an alternative to a disabling an event source

This should simplify handling of time events in clients and is in-line with the USEC_INFINITY macro we already have.
This way setting a timeout to 0 indicates "elapse immediately", and a timeout of USEC_INFINITY "elapse never".
src/libelogind/sd-event/sd-event.c