summaryrefslogtreecommitdiff
path: root/src/idle.c
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-08-05 16:57:16 +0800
committerGitHub <[email protected]>2021-08-05 16:57:16 +0800
commit054f6db3e651cb6e7340913e969f5656626b9e9a (patch)
tree6a2ab775321baf092dfb8d49947fe04e778cea01 /src/idle.c
parentb8a75f8f2809c3bbefd8a9925e054337b6965721 (diff)
parentc10678c1f0968a1ce9f5af1eb051b39f3bb2c1d6 (diff)
Merge pull request #4760 from mysterywolf/Internafunction
[kernel] 规范内核内部函数命名
Diffstat (limited to 'src/idle.c')
-rw-r--r--src/idle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/idle.c b/src/idle.c
index a571e487cf..ec625cb4a1 100644
--- a/src/idle.c
+++ b/src/idle.c
@@ -139,7 +139,7 @@ rt_err_t rt_thread_idle_delhook(void (*hook)(void))
#ifdef RT_USING_MODULE
/* Return whether there is defunctional thread to be deleted. */
-rt_inline int _has_defunct_thread(void)
+rt_inline int _idle_has_defunct_thread(void)
{
/* The rt_list_isempty has prototype of "int rt_list_isempty(const rt_list_t *l)".
* So the compiler has a good reason that the _rt_thread_defunct list does
@@ -207,7 +207,7 @@ static void rt_defunct_execute(void)
#ifdef RT_USING_MODULE
/* check whether list is empty */
- if (!_has_defunct_thread())
+ if (!_idle_has_defunct_thread())
{
rt_hw_interrupt_enable(lock);
break;