diff options
| author | qiuyiuestc <[email protected]> | 2010-04-21 16:59:06 +0000 |
|---|---|---|
| committer | qiuyiuestc <[email protected]> | 2010-04-21 16:59:06 +0000 |
| commit | 38c432620f3c1df2e88dc892dbd24ef19a198bd2 (patch) | |
| tree | fa99ba53b1b63c04aaba7d701e391bcddf88ae6b /src/idle.c | |
| parent | 146d88b0507c173919e1e8f8dee9f5c9157731fc (diff) | |
module developing
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@663 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/idle.c')
| -rw-r--r-- | src/idle.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/idle.c b/src/idle.c index a86be531c2..2354a21aac 100644 --- a/src/idle.c +++ b/src/idle.c @@ -79,6 +79,11 @@ static void rt_thread_idle_entry(void* parameter) /* release thread's stack */ rt_free(thread->stack_addr); +#ifdef RT_USING_MODULE + /* release thread point in module */ + if(thread->module_parent != RT_NULL) + thread->module_parent->module_thread = RT_NULL; +#endif /* delete thread object */ rt_object_delete((rt_object_t)thread); } |
