diff options
| author | Meco Man <[email protected]> | 2021-06-04 00:34:27 +0800 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2021-06-04 00:34:27 +0800 |
| commit | 076941612a5105acd51a42e5c0d36eb632f5dffa (patch) | |
| tree | 005bcc3779341b8acafdf405089c11bd067cdc42 /src/idle.c | |
| parent | e0b66ccab87bd5142769e0f4fd3f2b5ac14796ba (diff) | |
[kernel] 规范内核内部函数命名
Diffstat (limited to 'src/idle.c')
| -rw-r--r-- | src/idle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/idle.c b/src/idle.c index 59868352d8..317ee76926 100644 --- a/src/idle.c +++ b/src/idle.c @@ -129,7 +129,7 @@ rt_err_t rt_thread_idle_delhook(void (*hook)(void)) #ifdef RT_USING_HEAP /* Return whether there is defunctional thread to be deleted. */ -rt_inline int _has_defunct_thread(void) +rt_inline int _rt_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 @@ -165,7 +165,7 @@ void rt_thread_idle_excute(void) lock = rt_hw_interrupt_disable(); /* check whether list is empty */ - if (!_has_defunct_thread()) + if (!_rt_has_defunct_thread()) { rt_hw_interrupt_enable(lock); break; |
