Skip to content

Commit 054f6db

Browse files
authored
Merge pull request #4760 from mysterywolf/Internafunction
[kernel] 规范内核内部函数命名
2 parents b8a75f8 + c10678c commit 054f6db

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
@@ -139,7 +139,7 @@ rt_err_t rt_thread_idle_delhook(void (*hook)(void))
139139

140140
#ifdef RT_USING_MODULE
141141
/* Return whether there is defunctional thread to be deleted. */
142-
rt_inline int _has_defunct_thread(void)
142+
rt_inline int _idle_has_defunct_thread(void)
143143
{
144144
/* The rt_list_isempty has prototype of "int rt_list_isempty(const rt_list_t *l)".
145145
* So the compiler has a good reason that the _rt_thread_defunct list does
@@ -207,7 +207,7 @@ static void rt_defunct_execute(void)
207207

208208
#ifdef RT_USING_MODULE
209209
/* check whether list is empty */
210-
if (!_has_defunct_thread())
210+
if (!_idle_has_defunct_thread())
211211
{
212212
rt_hw_interrupt_enable(lock);
213213
break;

0 commit comments

Comments
 (0)