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


##########
libs/libc/semaphore/sem_wait.c:
##########
@@ -83,7 +83,12 @@ int sem_wait(FAR sem_t *sem)
 
   /* Let nxsem_wait() do the real work */
 
-  ret = nxsem_wait(sem);
+  ret = nxsem_trywait_fast(sem);

Review Comment:
   That would make the last patch totally irrelevant. What this is trying to do 
is avoid an expensive syscall (nxsem_wait) in protected and kernel build. In 
flat mode what you suggest would make sense though.



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

Reply via email to