[thread]Modify rt_thread_suspend to support suspending other threads.#10660
[thread]Modify rt_thread_suspend to support suspending other threads.#10660Rbb666 merged 1 commit intoRT-Thread:masterfrom
rt_thread_suspend to support suspending other threads.#10660Conversation
📌 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函数能够正确挂起和恢复目标线程,确保线程状态转换正常且系统调度稳定。