[riot-notifications] [RIOT-OS/RIOT] ztimer: add ztimer_is_set() to user API (#15780)

Kaspar Schleiser notifications at github.com
Fri Jan 15 22:14:17 CET 2021


> This PR simply exposes `ztimer`s internal `_is_set()` function by wrapping it into a critical section inside a newly added `ztimer_is_set()` user API function. Should be pretty straight forward.

I didn't expose it because it feels a bit dangerous to say "false" if the wrong clock is parsed. On the other hand, I didn't want to add an extra "clock" field to ztimer_t just to be able to remove the clock parameter from is_set()...

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15780#issuecomment-761200451
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210115/e6751e07/attachment.htm>


More information about the notifications mailing list