未验证 提交 c65e28bb 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #4719 from mysterywolf/heapwarning

[kernel][idle] _has_defunct_thread函数增加条件编译
......@@ -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.
先完成此消息的编辑!
想要评论请 注册