summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2019-02-09 10:58:16 +0800
committerGitHub <[email protected]>2019-02-09 10:58:16 +0800
commit821c81e21a5dbe2b229fae5fafbcfb4fc6758343 (patch)
tree9308f4b3f48a9126fbc091bd00cf82b9597b45ba /src
parent6fea6f7b7134e970f126610c7890502d45e95a17 (diff)
parentc003bdf44f168868198c7ac8bcabb8c9faee2111 (diff)
Merge pull request #2314 from RT-Thread/fix_pthread
Fix pthread
Diffstat (limited to 'src')
-rw-r--r--src/idle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/idle.c b/src/idle.c
index 3b15b30480..e685a7ddfc 100644
--- a/src/idle.c
+++ b/src/idle.c
@@ -193,6 +193,8 @@ void rt_thread_idle_excute(void)
/* if it's a system object, not delete it */
if (rt_object_is_systemobject((rt_object_t)thread) == RT_TRUE)
{
+ /* detach this object */
+ rt_object_detach((rt_object_t)thread);
/* unlock scheduler */
rt_exit_critical();