嵌入式技术
/**
* Double List structure
*/
struct rt_list_node
{
struct rt_list_node *next; /**< point to next node. */
struct rt_list_node *prev; /**< point to prev node. */
};
typedef struct rt_list_node rt_list_t; /**< Type for lists. */
/* 来自:object.c :rt_object_init */
/* insert object into information object list */
rt_list_insert_after(&(information- >object_list), &(object- >list));
不是:【容器head】 --- [obj1] --- [obj2] --- [obj2]
而是:【容器head】 --- [obj3] --- [obj2] --- [obj1]
msh / >list_thread
thread pri status sp stack size max used left tick error
-------- --- ------- ---------- ---------- ------ ---------- ---
persim 16 suspend 0x000001ec 0x0000c000 08% 0x00000003 000
sens 28 suspend 0x000000d8 0x00001000 13% 0x00000019 000
hws 28 suspend 0x000000d8 0x00000800 10% 0x00000032 000
dcm_tpo 10 suspend 0x00000090 0x00000800 14% 0x00000004 000
dcm_tpo 10 suspend 0x00000090 0x00000800 14% 0x00000002 000
dcm_tpo 10 suspend 0x00000090 0x00000800 15% 0x00000004 000
tshell 20 running 0x000001fc 0x00001000 26% 0x0000000a 000
touch 16 suspend 0x00000098 0x00000800 18% 0x00000013 000
usbd 8 suspend 0x000000ac 0x00001000 04% 0x00000014 000
at_clnt 9 suspend 0x000000c0 0x00000600 12% 0x00000002 000
ulog_asy 30 suspend 0x00000084 0x00000c00 09% 0x00000006 000
mmcsd_de 22 suspend 0x000000a0 0x00000400 48% 0x00000014 000
alarmsvc 10 suspend 0x000000a8 0x00000800 27% 0x00000003 000
rils 12 suspend 0x000000b0 0x00000800 08% 0x0000001e 000
tidle0 31 ready 0x00000058 0x00000800 04% 0x0000001d 000
timer 4 suspend 0x00000074 0x00000800 08% 0x00000009 000
main 10 suspend 0x00000120 0x00000800 41% 0x00000012 000 /* 最先创建的线程,最后打印 */
全部0条评论
快来发表一下你的评论吧 !