New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sched/pthread: repalce sched_lock to enter_critical_section #9002
Conversation
I'm in the middle of implementation for UPDATE: No, the changes are still not ready |
Please see apache/nuttx-apps#1711 |
This change has nothing to do with priority inheritance. 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. |
Please fix commit message |
|
Please rebase to get CI pass |
Can issue be easily reproduced? What are the steps? |
@Gary-Hobson please rebase your change. |
After RR is enabled, an interrupt occurs during this period and the task cannot be switched Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
Summary
Repalce sched_lock to enter_critical_section
After RR is enabled, an interrupt occurs during this period and the task cannot be switched
Impact
Testing