You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/04/09 16:58:41 UTC

[GitHub] [incubator-nuttx] patacongo commented on issue #6012: Low priority tasks interrupt high priority threads

patacongo commented on issue #6012:
URL: https://github.com/apache/incubator-nuttx/issues/6012#issuecomment-1094085136

   It is difficult to have an opinion if you are unfamiliar with the details of the implementation of the code.  But what this looks like to me is that:
   
   There is possibly some setup between the task and the interrupt handler.  What triggers signally the task from the interrupt handler?  Is if a boolean variable?  Is it a counting semaphore?  I have seen cases where the interrupt occurs before the boolean request is set so the task is not signaled.  Counting semaphores may also require some setup as well.  The count must be decremented before it is incremented the next time of the sem_post() has no effect.
   
   Again, I don't know this code, but it appears to me that the handshake between the task and the interrupt handler is not working properly.
   


-- 
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-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org