summaryrefslogtreecommitdiff
path: root/src/idle.c
diff options
context:
space:
mode:
authordzzxzz <[email protected]>2012-03-17 06:43:49 +0000
committerdzzxzz <[email protected]>2012-03-17 06:43:49 +0000
commit12b5e56f46e4b2b489a088c2ccfb6410c10686ea (patch)
tree7cafe9a126189efd19cf014e46c95f87bbb33774 /src/idle.c
parent3b06be1cde860cdc4cdc97f901e1794329591041 (diff)
unify the coding style of kernel
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1998 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'src/idle.c')
-rw-r--r--src/idle.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/idle.c b/src/idle.c
index b0355f9b8b..93ce0352df 100644
--- a/src/idle.c
+++ b/src/idle.c
@@ -1,7 +1,7 @@
/*
* File : idle.c
* This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006 - 2011, RT-Thread Development Team
+ * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
@@ -35,6 +35,7 @@ extern rt_list_t rt_thread_defunct;
/**
* @addtogroup Hook
*/
+
/*@{*/
static void (*rt_thread_idle_hook)();
@@ -50,6 +51,7 @@ void rt_thread_idle_sethook(void (*hook)())
{
rt_thread_idle_hook = hook;
}
+
/*@}*/
#endif
@@ -92,7 +94,8 @@ void rt_thread_idle_excute(void)
/* remove defunct thread */
rt_list_remove(&(thread->tlist));
/* invoke thread cleanup */
- if (thread->cleanup != RT_NULL) thread->cleanup(thread);
+ if (thread->cleanup != RT_NULL)
+ thread->cleanup(thread);
/* if it's a system object, not delete it */
if (rt_object_is_systemobject((rt_object_t)thread) == RT_EOK)
@@ -139,7 +142,8 @@ void rt_thread_idle_excute(void)
}
/* unload module */
- if (module->nref == 0) rt_module_unload(module);
+ if (module->nref == 0)
+ rt_module_unload(module);
#endif
}
}