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
This commit is contained in:
bernard.xiong 2010-12-13 05:26:15 +00:00
parent 9ee5762068
commit 12750c38b8
1 changed files with 1 additions and 2 deletions

View File

@ -22,6 +22,7 @@
* 2010-04-11 yi.qiu add module feature
* 2010-07-13 Bernard fix the maximal number of rt_scheduler_lock_nest
* issue found by kuronca
* 2010-12-13 Bernard add defunct list initialization even if not use heap.
*/
#include <rtthread.h>
@ -148,10 +149,8 @@ void rt_system_scheduler_init(void)
rt_memset(rt_thread_ready_table, 0, sizeof(rt_thread_ready_table));
#endif
#ifdef RT_USING_HEAP
/* init thread defunct */
rt_list_init(&rt_thread_defunct);
#endif
}
/**