diff options
| author | qiuyiuestc <[email protected]> | 2010-09-19 23:43:48 +0000 |
|---|---|---|
| committer | qiuyiuestc <[email protected]> | 2010-09-19 23:43:48 +0000 |
| commit | 446799244a2b796dbcd83bf8e557aff4ebaadc7d (patch) | |
| tree | bfff7779005797756a8815a38dcb6db15b043d65 /src/thread.c | |
| parent | 3c2c5df6e898ca10107a0c359d8d73e55222449a (diff) | |
module clean up
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@915 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/thread.c')
| -rw-r--r-- | src/thread.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/thread.c b/src/thread.c index 953cf9a0ca..536189070e 100644 --- a/src/thread.c +++ b/src/thread.c @@ -32,10 +32,6 @@ extern rt_list_t rt_thread_priority_table[RT_THREAD_PRIORITY_MAX]; extern struct rt_thread* rt_current_thread; extern rt_uint8_t rt_current_priority; -#ifdef RT_USING_MODULE -extern struct rt_module* rt_current_module; -#endif - #ifdef RT_USING_HEAP extern rt_list_t rt_thread_defunct; #endif @@ -82,7 +78,7 @@ static rt_err_t _rt_thread_init(struct rt_thread* thread, #ifdef RT_USING_MODULE /* init module parent */ thread->module_parent = - (rt_current_module != RT_NULL) ? rt_current_module : RT_NULL; + (rt_module_self() != RT_NULL) ? rt_module_self() : RT_NULL; #endif /* init user data */ |
