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-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org