mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-19 16:26:55 +08:00
修正相同优先级任务切换太频繁的问题
This commit is contained in:
@@ -89,6 +89,8 @@ void rt_tick_increase(void)
|
||||
/* change to initialized tick */
|
||||
thread->remaining_tick = thread->init_tick;
|
||||
|
||||
thread->can_yield = 1;
|
||||
|
||||
/* yield */
|
||||
rt_thread_yield();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user