[riot-notifications] [RIOT-OS/RIOT] sys/event: add periodic timeout event (#16507)

Kaspar Schleiser notifications at github.com
Tue Jun 1 15:51:42 CEST 2021


@kaspar030 commented on this pull request.



> +/**
+ * @brief   Stop a periodic timeout event
+ *
+ * Calling this function will cancel the timeout by removing its underlying
+ * timer. If the timer has already fired before calling this function, the
+ * connected event will be put already into the given event queue and this
+ * function does not have any effect.
+ *
+ * @param[in]   event_timeout   event_periodic_timeout context object to use
+ */
+static inline void event_periodic_timeout_stop(event_periodic_timeout_t *event_timeout)
+{
+    ztimer_periodic_stop(&event_timeout->timer);
+}
+#endif
+

(nit) double newline

-- 
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/16507#pullrequestreview-673099658
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210601/d6beabe1/attachment.htm>


More information about the notifications mailing list