summaryrefslogtreecommitdiff
path: root/src/scheduler.c
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-11-28 14:24:22 +0000
committer[email protected] <[email protected]>2012-11-28 14:24:22 +0000
commitee11663d87e071b44b6ca741b30605bf273a4fed (patch)
treef4560e37e9141364277384b0ea6757ad7b838041 /src/scheduler.c
parent0f72824edaa18763738ba9064cd298cadcf251f8 (diff)
remove rt_current_module and user can use rt_module_unload to remove a module.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2458 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/scheduler.c')
-rw-r--r--src/scheduler.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/scheduler.c b/src/scheduler.c
index 3a08b72942..27f0fc53f4 100644
--- a/src/scheduler.c
+++ b/src/scheduler.c
@@ -266,11 +266,6 @@ void rt_schedule(void)
from_thread = rt_current_thread;
rt_current_thread = to_thread;
-#ifdef RT_USING_MODULE
- rt_module_set((rt_current_thread->module_id != RT_NULL) ?
- (rt_module_t)rt_current_thread->module_id : RT_NULL);
-#endif
-
RT_OBJECT_HOOK_CALL(rt_scheduler_hook, (from_thread, to_thread));
/* switch to new thread */