修正相同优先级任务切换太频繁的问题

This commit is contained in:
shaojinchun
2019-10-11 09:13:40 +08:00
parent 413fcba30a
commit 234af6aaa2
4 changed files with 19 additions and 0 deletions

View File

@@ -608,6 +608,7 @@ struct rt_thread
rt_ubase_t init_tick; /**< thread's initialized tick */
rt_ubase_t remaining_tick; /**< remaining tick */
rt_ubase_t can_yield; /**< indicate whether remaining_tick has been reloaded since last schedule */
struct rt_timer thread_timer; /**< built-in thread timer */