Skip to content

Commit 903bc1f

Browse files
committed
[Kernel] sync with pthread issue in master
1 parent 45f3cf7 commit 903bc1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/idle.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ void rt_thread_idle_excute(void)
186186
/* if it's a system object, not delete it */
187187
if (rt_object_is_systemobject((rt_object_t)thread) == RT_TRUE)
188188
{
189+
/* detach this object */
190+
rt_object_detach((rt_object_t)thread);
189191
/* unlock scheduler */
190192
rt_exit_critical();
191193

0 commit comments

Comments
 (0)