From 446799244a2b796dbcd83bf8e557aff4ebaadc7d Mon Sep 17 00:00:00 2001 From: qiuyiuestc Date: Sun, 19 Sep 2010 23:43:48 +0000 Subject: module clean up git-svn-id: https://rt-thread.googlecode.com/svn/trunk@915 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- src/thread.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/thread.c') 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 */ -- cgit v1.3.1