zzby0 opened a new pull request, #16742:
URL: https://github.com/apache/nuttx/pull/16742

   ## Summary
   
   NuttX sim use coroutine base on one thread in host to do switch context. but 
if we allow switch context with in one API (host-API and errno get), maybe the 
switch context from coroutine cause re-enter host-API call. Make the errno get 
behavior not work as expected.
   
   This commit disable interrupts before and after host-APIs, make sure that 
errno is correct.
   
   ## Impact
   
   - Resolves previously observed cases where errno returned inconsistent 
values after context switch.
   
   - Some host-APIs are now uninterruptible during execution, which may 
slightly increase latency in scheduling.
   
   ## Testing
   
   CI-test, sim/nsh ostest
   
   
   


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