[riot-notifications] [RIOT-OS/RIOT] core/mutex: Add mutex_cancel (#15442)

Marian Buschsieweke notifications at github.com
Mon Nov 16 10:54:25 CET 2020

@kaspar030: How about making `mutex_lock()` return `void` and provide `mutex_lock_may_fail()` in addition? Code not checking the return code of `mutex_lock_may_fail()` would be an obvious red flag.

This would likely yield a bit more ROM use, but this would also get rid of the performance penalty to `mutex_lock()` that using the `core_mutex_cancel` module results in. To me, it makes much more sense if that performance penalty is only paid by callers of `mutex_lock_may_fail()`.

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...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201116/8c1ca440/attachment.htm>

More information about the notifications mailing list