diff options
| author | Meco Jianting Man <[email protected]> | 2021-05-22 17:21:42 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-05-22 17:21:42 +0800 |
| commit | c58d893c1add4e5a2495ff0726132958e3539854 (patch) | |
| tree | 0cf99072972c1b28e31179744a643379651c3b21 /src | |
| parent | 19de22f485c2adc07ec90b92753bc53d7a7a9487 (diff) | |
[kernel][idle] _has_defunct_thread函数增加条件编译
_has_defunct_thread函数增加条件编译,防止没有开启heap时报警
Diffstat (limited to 'src')
| -rw-r--r-- | src/idle.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/idle.c b/src/idle.c index 24dfffbc6d..59868352d8 100644 --- a/src/idle.c +++ b/src/idle.c @@ -127,6 +127,7 @@ rt_err_t rt_thread_idle_delhook(void (*hook)(void)) #endif +#ifdef RT_USING_HEAP /* Return whether there is defunctional thread to be deleted. */ rt_inline int _has_defunct_thread(void) { @@ -140,6 +141,7 @@ rt_inline int _has_defunct_thread(void) return l->next != l; } +#endif /** * @ingroup Thread |
