You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "xiaoxiang781216 (via GitHub)" <gi...@apache.org> on 2023/08/21 02:37:31 UTC

[GitHub] [nuttx] xiaoxiang781216 commented on pull request #10295: vfs:add nxsched_foreach to sched_lock avoid crash

xiaoxiang781216 commented on PR #10295:
URL: https://github.com/apache/nuttx/pull/10295#issuecomment-1685528351

   > I'm missing detailed description of the issue that this change is intended to fix. This is needed to justify why locking scheduler is needed inside the `nxsched_foreach` interface compared to case when `nxsched_foreach` caller should lock scheduler.
   
   @pkarashchenko as the discussion in #1138, the thread holds the critical section will be scheduled out if it wakes up other high priority thread, sched lock could prevent this happen.


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