summaryrefslogtreecommitdiff
path: root/src/idle.c
diff options
context:
space:
mode:
authorbernard <[email protected]>2017-09-29 10:23:56 +0800
committerbernard <[email protected]>2017-09-29 10:23:56 +0800
commitcccff34fcac04f34233a33e453f2d0ec255bf231 (patch)
treed406036f73296b27f3cb96e77ede98dd7803c61d /src/idle.c
parente9a77b513f0a4b37d539a030592a61b08d03602d (diff)
parent3691b67e83ab57196dfc62606b1be18db76994a7 (diff)
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'src/idle.c')
-rw-r--r--src/idle.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/idle.c b/src/idle.c
index db87baa484..e268c085a7 100644
--- a/src/idle.c
+++ b/src/idle.c
@@ -55,7 +55,7 @@ static void (*rt_thread_idle_hook)();
/**
* @ingroup Hook
- * This function sets a hook function to idle thread loop. When the system performs
+ * This function sets a hook function to idle thread loop. When the system performs
* idle loop, this hook function should be invoked.
*
* @param hook the specified hook function
@@ -77,7 +77,7 @@ rt_inline int _has_defunct_thread(void)
* into a "if".
*
* So add the volatile qualifier here. */
- const volatile rt_list_t *l = (const volatile rt_list_t*)&rt_thread_defunct;
+ const volatile rt_list_t *l = (const volatile rt_list_t *)&rt_thread_defunct;
return l->next != l;
}
@@ -155,8 +155,8 @@ void rt_thread_idle_excute(void)
rt_module_free((rt_module_t)thread->module_id, thread->stack_addr);
else
#endif
- /* release thread's stack */
- RT_KERNEL_FREE(thread->stack_addr);
+ /* release thread's stack */
+ RT_KERNEL_FREE(thread->stack_addr);
/* delete thread object */
rt_object_delete((rt_object_t)thread);
#endif
@@ -185,12 +185,12 @@ static void rt_thread_idle_entry(void *parameter)
{
while (1)
{
- #ifdef RT_USING_IDLE_HOOK
+#ifdef RT_USING_IDLE_HOOK
if (rt_thread_idle_hook != RT_NULL)
{
rt_thread_idle_hook();
}
- #endif
+#endif
rt_thread_idle_excute();
}