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

Marian Buschsieweke notifications at github.com
Sat Nov 14 10:04:10 CET 2020


@maribu commented on this pull request.



> @@ -60,10 +67,19 @@ int mutex_lock(mutex_t *mutex)
         thread_add_to_list(&mutex->queue, me);
     }
 
+#if IS_USED(MODULE_CORE_MUTEX_CANCEL)
+    me->wait_data = NULL;

Exactly.

-- 
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_r523396842
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201114/372c4ec5/attachment.htm>


More information about the notifications mailing list