You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/06/15 03:49:53 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a diff in pull request #6435: drivers/syslog: reuse rmutex_t for the recursive check

xiaoxiang781216 commented on code in PR #6435:
URL: https://github.com/apache/incubator-nuttx/pull/6435#discussion_r897507834


##########
include/nuttx/mutex.h:
##########
@@ -419,7 +419,7 @@ static inline int nxrmutex_trylock(FAR rmutex_t *rmutex)
 
 static inline bool nxrmutex_is_locked(FAR rmutex_t *rmutex)
 {
-  return rmutex->count > 0;
+  return rmutex->holder == gettid();

Review Comment:
   Ok, change to nxrmutex_is_hold



-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org