mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-22 11:30:01 +08:00
解决yield操作不能及时释放cpu的问题
This commit is contained in:
+1
-2
@@ -91,8 +91,7 @@ void rt_tick_increase(void)
|
||||
|
||||
thread->stat |= RT_THREAD_STAT_YIELD;
|
||||
|
||||
/* yield */
|
||||
rt_thread_yield();
|
||||
rt_schedule();
|
||||
}
|
||||
|
||||
/* check timer */
|
||||
|
||||
Reference in New Issue
Block a user