Explorar o código

[finsh] Add RUNNING stat in thread

Bernard Xiong %!s(int64=6) %!d(string=hai) anos
pai
achega
c2a85453b3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      components/finsh/cmd.c

+ 1 - 0
components/finsh/cmd.c

@@ -214,6 +214,7 @@ long list_thread(void)
                     else if (stat == RT_THREAD_SUSPEND) rt_kprintf(" suspend");
                     else if (stat == RT_THREAD_INIT)    rt_kprintf(" init   ");
                     else if (stat == RT_THREAD_CLOSE)   rt_kprintf(" close  ");
+                    else if (stat == RT_THREAD_RUNNING) rt_kprintf(" running");
 
 #if defined(ARCH_CPU_STACK_GROWS_UPWARD)
                     ptr = (rt_uint8_t *)thread->stack_addr + thread->stack_size - 1;