4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 09:43:30 +08:00

[finsh] Add RUNNING stat in thread

This commit is contained in:
Bernard Xiong 2019-01-13 14:22:13 +08:00
parent de624c52c1
commit c2a85453b3

View File

@ -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;