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

benpicco notifications at github.com
Thu Nov 19 00:37:56 CET 2020


@benpicco approved this pull request.

Looks good to me.
This makes for a useful addition. Having a way to abort a thread blocking on a mutex is a good tool to have.

I was contemplating a micro-optimization of just storing `-ECANCELED` in the `cancelled` flag and then unconditionally returning that, but it's cleaner this way.



-- 
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/15442#pullrequestreview-533968255
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201118/c6205585/attachment.htm>


More information about the notifications mailing list