mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-07 08:39:40 +08:00
module update
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@946 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
1 parent
1b55b00533
commit
7fd452b8a6
2 files changed
+174
-30
No files matched your search
+14
-9
@@ -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
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user