[riot-notifications] [RIOT-OS/RIOT] core/mutex: Add mutex_cancel (#15442)
Marian Buschsieweke
notifications at github.com
Tue Nov 17 14:41:08 CET 2020
@maribu commented on this pull request.
> irq_restore(irq_state);
thread_yield_higher();
/* We were woken up by scheduler. Waker removed us from queue. */
- return 0;
+}
+
+void mutex_lock(mutex_t *mutex)
+{
+ unsigned irq_state = irq_disable();
+
+ DEBUG("PID[%" PRIkernel_pid "]: Mutex in use.\n", thread_getpid());
I made the debug output more consistent and just use the function names, which both describe quite well what is done and how to find the corresponding code.
--
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#discussion_r525160008
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201117/91e2ec46/attachment.htm>
More information about the notifications
mailing list