提交 130da0f1 编写于 作者: B bernard.xiong@gmail.com

RT_DEBUG_NOT_IN_INTERRUPT is only executed when rt_thread_defunct is not empty.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1739 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 cbfe1d64
......@@ -60,8 +60,6 @@ void rt_thread_idle_sethook(void (*hook)())
*/
void rt_thread_idle_excute(void)
{
RT_DEBUG_NOT_IN_INTERRUPT;
/* check the defunct thread list */
if (!rt_list_isempty(&rt_thread_defunct))
{
......@@ -70,6 +68,8 @@ void rt_thread_idle_excute(void)
#ifdef RT_USING_MODULE
rt_module_t module = RT_NULL;
#endif
RT_DEBUG_NOT_IN_INTERRUPT;
/* disable interrupt */
lock = rt_hw_interrupt_disable();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册