RT-Thread / rt-thread

RT-Thread is an open source IoT Real-Time Operating System (RTOS).
https://www.rt-thread.io
Apache License 2.0
10.38k stars 4.99k forks source link

rt_thread_suspend接口使用后,不会自动产生调度 #8172

Open RiceChen0 opened 11 months ago

RiceChen0 commented 11 months ago

个人认为,rt_thread_suspend要保证这个调度行为,而不是人为来保证,其他的rtos都是自动调度的。而至于危险问题,由用户决定。系统不应该做限制。

RiceChen0 commented 11 months ago

b899246f0eed4ff22219ca824d712aa

34703abdb197ea1f95eee68327ddd5c

BernardXiong commented 11 months ago

可以尝试修改,测试稳定下来,欢迎PR