File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1313 * 2010-07-13 Bernard fix rt_tick_from_millisecond issue found by kuronca
1414 * 2011-06-26 Bernard add rt_tick_set function.
1515 * 2018-11-22 Jesven add per cpu tick
16- * 2020-12-29 Meco Man add function rt_tick_get_millisecond()
16+ * 2020-12-29 Meco Man implement rt_tick_get_millisecond()
17+ * 2021-06-01 Meco Man add critical section projection for rt_tick_increase()
1718 */
1819
1920#include <rthw.h>
Original file line number Diff line number Diff line change @@ -202,12 +202,14 @@ static void rt_thread_idle_entry(void *parameter)
202202 {
203203#ifdef RT_USING_IDLE_HOOK
204204 rt_size_t i ;
205+ void (* idle_hook )(void );
205206
206207 for (i = 0 ; i < RT_IDLE_HOOK_LIST_SIZE ; i ++ )
207208 {
208- if (idle_hook_list [i ] != RT_NULL )
209+ idle_hook = idle_hook_list [i ];
210+ if (idle_hook != RT_NULL )
209211 {
210- idle_hook_list [ i ] ();
212+ idle_hook ();
211213 }
212214 }
213215#endif
You can’t perform that action at this time.
0 commit comments