summaryrefslogtreecommitdiff
path: root/src/idle.c
diff options
context:
space:
mode:
authorqiuyiuestc <[email protected]>2010-09-13 01:03:09 +0000
committerqiuyiuestc <[email protected]>2010-09-13 01:03:09 +0000
commitd54f2bbfc682cdd320171f2c67c3a642e3c42b0f (patch)
treebd8145a8f5bf4bdf3ba2bc6881c5830b7675651d /src/idle.c
parente78285e76f9a1ea6197e2d121a81cef443aa84dc (diff)
module update
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@905 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/idle.c')
-rw-r--r--src/idle.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/idle.c b/src/idle.c
index fcd6e457e2..b9c8529da7 100644
--- a/src/idle.c
+++ b/src/idle.c
@@ -105,10 +105,9 @@ void rt_thread_idle_excute(void)
module->module_thread = RT_NULL;
}
- /* if sub thread list and main thread are 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) &&
- (module->module_info->module_type == RT_Module_Class_APP))
+ rt_list_isempty(&module->module_object[RT_Object_Class_Thread].object_list) )
{
/* unload module */
rt_module_unload(module);