You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "Gary-Hobson (via GitHub)" <gi...@apache.org> on 2023/04/12 07:52:42 UTC

[GitHub] [nuttx] Gary-Hobson commented on pull request #9002: sched/pthread: repalce sched_lcok to enter_critical_section

Gary-Hobson commented on PR #9002:
URL: https://github.com/apache/nuttx/pull/9002#issuecomment-1504825499

   > I'm in the middle of implementation for `ostest` for scheduler lock/unlock and has draft change to fix it #7464 Could you please try if the change helps in this particular case?
   > 
   > UPDATE: No, the changes are still not ready
   
   This change has nothing to do with priority inheritance.
   It is encountered when running the libuv test set, and there is a case (uv_run_test async) that will busy wait for a mutex.
   
   The time to turn off scheduling in pthread_mutex_timedlock is too long. After turning on the time slice rotation, every time an interrupt is triggered, it is in the state of off scheduling, resulting in the task not being able to switch tasks.


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