pkarashchenko commented on code in PR #6435: URL: https://github.com/apache/incubator-nuttx/pull/6435#discussion_r897499348
########## 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: This does not implement "is locked" functionality, but rather "is holder". -- 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