Parent: ef2412c14664cc64b3f9f4a502c50f453d3bc16e
Author: Frédéric Danis <frederic.danis@collabora.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2021-03-16 19:52:26
Tree: 167e698ae748b3ad21a3c9a5ad8c9b792df80dd9
shared/timeout: Add timeout_add_seconds abstraction g_timeout_add_seconds() call doesn't ensure the time for the first call of the timer if the delay is less or equal to 1 second. In case of a 0 delay call g_idle_add() instead of g_timeout_add_seconds().
Diffstat
| M | src/shared/tester.c | | | 16 | +++++++++- - - - - - - |
| M | src/shared/timeout-ell.c | | | 6 | ++++++ |
| M | src/shared/timeout-glib.c | | | 27 | +++++++++++++++++++++++++++ |
| M | src/shared/timeout-mainloop.c | | | 6 | ++++++ |
| M | src/shared/timeout.h | | | 3 | +++ |
5 files changed, 51 insertions(+), 7 deletions(-)