未验证 提交 c58d893c 编写于 作者: mysterywolf's avatar mysterywolf 提交者: GitHub

[kernel][idle] _has_defunct_thread函数增加条件编译

_has_defunct_thread函数增加条件编译,防止没有开启heap时报警
上级 19de22f4
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册