diff options
| author | Shicheng Chu <[email protected]> | 2023-04-04 21:06:27 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-04-04 09:06:27 -0400 |
| commit | 93f3cb30e48d5de341bda09fa806120e2bc3f3ad (patch) | |
| tree | b23b2343674fecbc3fdfbcd49220488da21472ed /include | |
| parent | 8a52e65013d1abb7cfc032409000533000ccd0c2 (diff) | |
[kernel] 将rt_thread结构体改为显式继承rt_object (#7131)
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdef.h | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index 9746fea388..1c3b1a5027 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -744,24 +744,7 @@ struct rt_user_context */ struct rt_thread { - /* rt object */ -#if RT_NAME_MAX > 0 - char name[RT_NAME_MAX]; /**< dynamic name of kernel object */ -#else - const char *name; /**< static name of kernel object */ -#endif /* RT_NAME_MAX > 0 */ - rt_uint8_t type; /**< type of object */ - rt_uint8_t flags; /**< thread's flags */ - -#ifdef RT_USING_MODULE - void *module_id; /**< id of application module */ -#endif /* RT_USING_MODULE */ - -#ifdef RT_USING_SMART - int lwp_ref_count; /**< ref count for lwp */ -#endif /* RT_USING_SMART */ - - rt_list_t list; /**< the object list */ + struct rt_object parent; rt_list_t tlist; /**< the thread list */ /* stack point and entry */ |
