[riot-notifications] [RIOT-OS/RIOT] core/mutex: Add mutex_cancel (#15442)
notifications at github.com
Mon Nov 16 10:48:47 CET 2020
> Granted, that _feels_ dirty - and I know why: A thread might wait on multiple mutexen. How can we be sure to cancel the right on?
> Maybe the caller as to supply the pointer to the mutex it wants to cancel?
That's how @maribu did it in this PR:
I agree that your example feels somewhat dirty. :)
Maybe we should change stdio/uart/isr_pipe to use thread flags, so waiting for them can be done at the same time as waiting for other flags, timeouts, msg, events, ... which would allow this to be implemented in a clean way.
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