调整代码,以支持cpu usage

This commit is contained in:
fenghuijie
2021-07-05 18:33:22 +08:00
parent e933c1f610
commit 0015af02e4
7 changed files with 39 additions and 1 deletions
+4
View File
@@ -663,6 +663,10 @@ struct rt_thread
rt_ubase_t init_tick; /**< thread's initialized tick */
rt_ubase_t remaining_tick; /**< remaining tick */
#ifdef RT_USING_CPU_USAGE
rt_uint64_t duration_tick; /**< cpu usage tick */
#endif
struct rt_timer thread_timer; /**< built-in thread timer */
void (*cleanup)(struct rt_thread *tid); /**< cleanup function when thread exit */