xiaoxiang781216 edited a comment on pull request #5624:
URL: https://github.com/apache/incubator-nuttx/pull/5624#issuecomment-1053616123


   > Please update the PR description with a use case that you are trying to 
fix. The changes seems to be not straight forward to me. I need to explanation 
to understand what is doing on in the system
   
   @pkarashchenko the case is simple, you can see that xxx_sample could wake up 
poller if the interrupt happen while the caller is waiting inside select/poll 
function. But, the event will lose if the caller is busy to do other thing and 
then can't sleep in select/poll while the interrupt happen. This PR try to fix 
this issue by adding a pending flag:
   
   1. Set the pending flag in the interrupt handle
   2. Check the pending flag in poll setup
   3. Clear the pending flag after the caller read the new state


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