@@ -89,7 +89,7 @@ void rt_scheduler_switch_sethook(void (*hook)(struct rt_thread *tid))
8989/**@}*/
9090#endif /* RT_USING_HOOK */
9191
92- static inline void _scheduler_update_highest_priority (void )
92+ rt_inline void _scheduler_update_highest_priority (void )
9393{
9494#if RT_THREAD_PRIORITY_MAX > 32
9595 rt_ubase_t number ;
@@ -102,7 +102,7 @@ static inline void _scheduler_update_highest_priority(void)
102102#endif /* RT_THREAD_PRIORITY_MAX > 32 */
103103}
104104
105- static inline struct rt_thread *
105+ rt_inline struct rt_thread *
106106_scheduler_get_priority_thread (rt_ubase_t priority )
107107{
108108 /* get highest ready priority thread */
@@ -198,7 +198,7 @@ void rt_system_scheduler_start(void)
198198 *
199199 * @note Please do not invoke this function in user application.
200200 */
201- static inline void _rt_sched_insert_thread (struct rt_thread * thread )
201+ rt_inline void _rt_sched_insert_thread (struct rt_thread * thread )
202202{
203203 /* READY thread, insert to ready queue */
204204 RT_SCHED_CTX (thread ).stat =
@@ -239,7 +239,7 @@ static inline void _rt_sched_insert_thread(struct rt_thread *thread)
239239 *
240240 * @note Please do not invoke this function in user application.
241241 */
242- static inline void _rt_sched_remove_thread (struct rt_thread * thread )
242+ rt_inline void _rt_sched_remove_thread (struct rt_thread * thread )
243243{
244244 LOG_D ("remove thread[%.*s], the priority: %d" , RT_NAME_MAX ,
245245 thread -> parent .name ,
0 commit comments