pussuw commented on code in PR #16194:
URL: https://github.com/apache/nuttx/pull/16194#discussion_r2059032291


##########
libs/libc/misc/lib_mutex.c:
##########
@@ -389,22 +249,17 @@ int nxmutex_clocklock(FAR mutex_t *mutex, clockid_t 
clockid,
 
   /* Wait until we get the lock or until the timeout expires */
 
-  do
+  if (abstime)

Review Comment:
   Seems like neither -EINTR nor -ECANCELED is a valid return value from any 
mutex_lock variant, as pthread_mutex_lock is not a cancellation point. So can 
-ECANCELED get through still ? If it does this is a POSIX violation.



-- 
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