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


##########
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:
   One alternative is to have the actual functions as inline, and call the 
_slow ones from there. Then expose only the _slow functions in syscall 
interface. That would then optimize also the nxmutex paths in libc at the same. 
Thoughts on that?



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