shared/timeout: Add timeout_add_seconds abstraction
authorFrédéric Danis <frederic.danis@collabora.com>
Tue, 16 Mar 2021 17:18:33 +0000 (18:18 +0100)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:34 +0000 (19:08 +0530)
commitedd170a10ebb5a69b6948b6edbc06e5f875a6111
tree38f460a25306b41042f8ba4847645c4c9b3d54ba
parent3d9dc6f34162775cde6a002169e53fe5c65d6cae
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().

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/shared/tester.c
src/shared/timeout-ell.c
src/shared/timeout-glib.c
src/shared/timeout-mainloop.c
src/shared/timeout.h