mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Kaspar Schleiser
88b509e56d
ztimer's machinery depends on figuring out if a timer is currently set or not. It does that using _is_set(), which is also exposed as ztimer_is_set(). Now when a timer expired and got taken of the timer queue using _now_next(), the `next` pointer wasn't unset. This caused _is_set() to wrongly return `true` for that timer. Internally in ztimer, this didn't cause breakage, just an unnecessary iteration of the timer queue by _delete_timer_from_list(). But this also broke the public ztimer_is_set(). This commit fixes the issue by correctly NULLing the timer's `next` pointer when the timer triggers. |
||
---|---|---|
.. | ||
auto_init.c | ||
convert_frac.c | ||
convert_muldiv64.c | ||
convert_shift.c | ||
convert.c | ||
core.c | ||
Kconfig | ||
Makefile | ||
Makefile.dep | ||
mock.c | ||
overhead.c | ||
periodic.c | ||
periph_ptp.c | ||
periph_rtc.c | ||
periph_rtt.c | ||
periph_timer.c | ||
util.c | ||
xtimer2ztimer.cocci |