xiaoxiang781216 commented on code in PR #10593:
URL: https://github.com/apache/nuttx/pull/10593#discussion_r1322277099


##########
libs/libc/misc/lib_mutex.c:
##########
@@ -337,6 +337,7 @@ int nxmutex_unlock(FAR mutex_t *mutex)
     }
 
   DEBUGASSERT(nxmutex_is_hold(mutex));
+  ASSERT(mutex->holder == _SCHED_GETTID());

Review Comment:
   but nxmutex_is_hold already do the same check.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to