@@ -79,7 +79,7 @@ void rt_thread_inited_sethook(void (*hook)(rt_thread_t thread))
7979#endif
8080
8181/* must be invoke witch rt_hw_interrupt_disable */
82- static void _thread_cleanup_execute (rt_thread_t thread )
82+ static void _rt_thread_cleanup_execute (rt_thread_t thread )
8383{
8484 register rt_base_t level ;
8585#ifdef RT_USING_MODULE
@@ -103,7 +103,7 @@ static void _thread_cleanup_execute(rt_thread_t thread)
103103 rt_hw_interrupt_enable (level );
104104}
105105
106- void rt_thread_exit (void )
106+ static void _rt_thread_exit (void )
107107{
108108 struct rt_thread * thread ;
109109 register rt_base_t level ;
@@ -114,7 +114,7 @@ void rt_thread_exit(void)
114114 /* disable interrupt */
115115 level = rt_hw_interrupt_disable ();
116116
117- _thread_cleanup_execute (thread );
117+ _rt_thread_cleanup_execute (thread );
118118
119119 /* remove from schedule */
120120 rt_schedule_remove_thread (thread );
@@ -165,11 +165,11 @@ static rt_err_t _rt_thread_init(struct rt_thread *thread,
165165#ifdef ARCH_CPU_STACK_GROWS_UPWARD
166166 thread -> sp = (void * )rt_hw_stack_init (thread -> entry , thread -> parameter ,
167167 (void * )((char * )thread -> stack_addr ),
168- (void * )rt_thread_exit );
168+ (void * )_rt_thread_exit );
169169#else
170170 thread -> sp = (void * )rt_hw_stack_init (thread -> entry , thread -> parameter ,
171171 (rt_uint8_t * )((char * )thread -> stack_addr + thread -> stack_size - sizeof (rt_ubase_t )),
172- (void * )rt_thread_exit );
172+ (void * )_rt_thread_exit );
173173#endif
174174
175175 /* priority init */
@@ -374,7 +374,7 @@ rt_err_t rt_thread_detach(rt_thread_t thread)
374374 rt_schedule_remove_thread (thread );
375375 }
376376
377- _thread_cleanup_execute (thread );
377+ _rt_thread_cleanup_execute (thread );
378378
379379 /* release thread timer */
380380 rt_timer_detach (& (thread -> thread_timer ));
@@ -472,7 +472,7 @@ rt_err_t rt_thread_delete(rt_thread_t thread)
472472 rt_schedule_remove_thread (thread );
473473 }
474474
475- _thread_cleanup_execute (thread );
475+ _rt_thread_cleanup_execute (thread );
476476
477477 /* release thread timer */
478478 rt_timer_detach (& (thread -> thread_timer ));
0 commit comments