diff options
| author | shaojinchun <[email protected]> | 2019-10-11 09:13:40 +0800 |
|---|---|---|
| committer | shaojinchun <[email protected]> | 2019-10-12 10:51:47 +0800 |
| commit | 234af6aaa2ec2fd5c8c758a8f9fa29553ddeaf3f (patch) | |
| tree | 83e0c2fb86cb203117d537e613bab627efb72c91 /include | |
| parent | 413fcba30a532e416d930e6209c331d05e2d2887 (diff) | |
修正相同优先级任务切换太频繁的问题
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdef.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index 3dc8a2a2a9..90604e9b1d 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -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 */ |
