-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[thread]Modify rt_thread_suspend
to support suspending other threads.
#10660
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
Conversation
📌 Code Review Assignment🏷️ Tag: kernelReviewers: GorrayLi ReviewSun hamburger-os lianux-mm wdfk-prog xu18838022837 Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2025-09-08 14:48 CST)
📝 Review Instructions
|
这个命名有些显得随意了 |
@BernardXiong |
@BernardXiong 熊大,命名已修改为 rt_thread_suspend_force,请 review |
如果大家确实有挂起其他线程的需求,是不是还是直接把我们原来suspend api里面人为添加的限制取消掉就好了。现在这么做又加了好几个函数,感觉意义不大。 |
那我直接针对 |
@Guozhanxin 已修改,并完善使用注意事项,请再次review |
rt_thread_suspend
to support suspending other threads.
rt_thread_suspend
to support suspending other threads.rt_thread_suspend
to support suspending other threads.
修改rt_thread_suspend 以支持可以挂起其他线程
新增三个测试用例:
rt_thread_suspend_force
函数能够正确挂起和恢复目标线程,确保线程状态转换正常且系统调度稳定。