Explorar o código

[Kernel] sync with pthread issue in master

Bernard Xiong %!s(int64=6) %!d(string=hai) anos
pai
achega
903bc1ff23
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/idle.c

+ 2 - 0
src/idle.c

@@ -186,6 +186,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();