[riot-notifications] [RIOT-OS/RIOT] sys/sema: allow to use ztimer and/or xtimer (#15782)
notifications at github.com
Thu Apr 8 09:35:33 CEST 2021
@fjmolinas commented on this pull request.
> + * @brief Wait for a semaphore being posted, using ztimer as backend
+ * @pre `(sema != NULL)`
+ * @pre `(clock != NULL)`
+ * @param[in] sema A semaphore.
+ * @param[in] clock ztimer clock to use
+ * @param[in] timeout Time in microseconds until the semaphore times out.
+ * 0 does not wait.
+ * @return 0 on success
+ * @return -ETIMEDOUT, if the semaphore times out.
+ * @return -ECANCELED, if the semaphore was destroyed.
+ * @return -EAGAIN, if the semaphore is not posted (only if timeout = 0)
+static inline int sema_wait_timed_ztimer(sema_t *sema,
I had missed https://github.com/RIOT-OS/RIOT/pull/15782#discussion_r604705742, then never mind this comment.
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications