summaryrefslogtreecommitdiff
path: root/src/idle.c
diff options
context:
space:
mode:
authorbernard <[email protected]>2017-10-15 22:31:53 +0800
committerbernard <[email protected]>2017-10-15 22:31:53 +0800
commitb27c7e482648535760e012cd6f1afef1d800e2d2 (patch)
treead040fd4e7579e67ba6ee2edae468b63f2099a0e /src/idle.c
parentcd215b25455bf06dfeb8885fe4d8f5b30174a8c3 (diff)
[Kernel] Add signal implementation.
1. Add signal implementation; 2. Change the 'rt_uint8_t' of cmd to 'int';
Diffstat (limited to 'src/idle.c')
-rw-r--r--src/idle.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/idle.c b/src/idle.c
index e268c085a7..68b816f7ed 100644
--- a/src/idle.c
+++ b/src/idle.c
@@ -127,6 +127,10 @@ void rt_thread_idle_excute(void)
if (thread->cleanup != RT_NULL)
thread->cleanup(thread);
+#ifdef RT_USING_SIGNALS
+ rt_thread_free_sig(thread);
+#endif
+
/* if it's a system object, not delete it */
if (rt_object_is_systemobject((rt_object_t)thread) == RT_TRUE)
{