[riot-notifications] [RIOT-OS/RIOT] core/mutex: Add mutex_cancel (#15442)
notifications at github.com
Tue Nov 17 12:53:43 CET 2020
@kaspar030 commented on this pull request.
> @@ -33,21 +33,20 @@
#define ENABLE_DEBUG 0
-int mutex_lock(mutex_t *mutex)
+ * @brief Block waiting for a locked mutex
+ * @pre IRQs are disabled
> I don't think that there is a valid use case for the above code.
no, it will probably horribly fail, as the mutex code expects to schedule away on irq_restore(). But that is not new to this PR: :/
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