module update

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@946 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
qiuyiuestc committed 2010-09-25 15:30:25 +00:00
1 parent 1b55b00533
commit 7fd452b8a6
2 files changed
+174 -30

No files matched your search

+14 -9
View File
@@ -103,15 +103,7 @@ void rt_thread_idle_excute(void)
{
/* detach module's main thread */
module->module_thread = RT_NULL;
}
/* if sub thread list and main thread are all enmpy */
if((module->module_thread == RT_NULL) &&
rt_list_isempty(&module->module_object[RT_Object_Class_Thread].object_list) )
{
/* unload module */
rt_module_unload(module);
}
}
}
#endif
/* release thread's stack */
@@ -119,7 +111,20 @@ void rt_thread_idle_excute(void)
/* delete thread object */
rt_object_delete((rt_object_t)thread);
#ifdef RT_USING_MODULE
if(module != RT_NULL)
{
/* if sub thread list and main thread are all empty */
if((module->module_thread == RT_NULL) &&
rt_list_isempty(&module->module_object[RT_Object_Class_Thread].object_list) )
{
/* unload module */
rt_module_unload(module);
}
}
}
#endif
#endif
}
+160 -21
View File
File diff suppressed because it is too large. Load diff