提交 12750c38 编写于 作者: B bernard.xiong

add defunct list initialization even if not use heap.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1199 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 9ee57620
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
* 2010-04-11 yi.qiu add module feature * 2010-04-11 yi.qiu add module feature
* 2010-07-13 Bernard fix the maximal number of rt_scheduler_lock_nest * 2010-07-13 Bernard fix the maximal number of rt_scheduler_lock_nest
* issue found by kuronca * issue found by kuronca
* 2010-12-13 Bernard add defunct list initialization even if not use heap.
*/ */
#include <rtthread.h> #include <rtthread.h>
...@@ -148,10 +149,8 @@ void rt_system_scheduler_init(void) ...@@ -148,10 +149,8 @@ void rt_system_scheduler_init(void)
rt_memset(rt_thread_ready_table, 0, sizeof(rt_thread_ready_table)); rt_memset(rt_thread_ready_table, 0, sizeof(rt_thread_ready_table));
#endif #endif
#ifdef RT_USING_HEAP
/* init thread defunct */ /* init thread defunct */
rt_list_init(&rt_thread_defunct); rt_list_init(&rt_thread_defunct);
#endif
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册