Skip to content

Commit c10678c

Browse files
committed
内部函数以_开头
1 parent e709711 commit c10678c

File tree

3 files changed

+60
-60
lines changed

3 files changed

+60
-60
lines changed

src/idle.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ rt_err_t rt_thread_idle_delhook(void (*hook)(void))
129129

130130
#ifdef RT_USING_HEAP
131131
/* Return whether there is defunctional thread to be deleted. */
132-
rt_inline int _rt_has_defunct_thread(void)
132+
rt_inline int _idle_has_defunct_thread(void)
133133
{
134134
/* The rt_list_isempty has prototype of "int rt_list_isempty(const rt_list_t *l)".
135135
* So the compiler has a good reason that the rt_thread_defunct list does
@@ -165,7 +165,7 @@ void rt_thread_idle_excute(void)
165165
lock = rt_hw_interrupt_disable();
166166

167167
/* check whether list is empty */
168-
if (!_rt_has_defunct_thread())
168+
if (!_idle_has_defunct_thread())
169169
{
170170
rt_hw_interrupt_enable(lock);
171171
break;

0 commit comments

Comments
 (0)