diff options
| author | heyuanjie <xx> | 2018-07-30 11:12:12 +0800 |
|---|---|---|
| committer | heyuanjie <xx> | 2018-07-30 11:12:12 +0800 |
| commit | c79fbd373fc8b300cb2f4564aa934a4e93b81547 (patch) | |
| tree | 1a36c2e650fa13a66eecf21224eda29c567cb731 /include | |
| parent | e6fedb6e9bfbef07c4bcc065a5538d466abee19f (diff) | |
[lwp]给thread添加lwp成员
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdef.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index 642ea0e729..7e7e63594f 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -556,7 +556,11 @@ struct rt_thread void (*cleanup)(struct rt_thread *tid); /**< cleanup function when thread exit */ - rt_uint32_t user_data; /**< private user data beyond this thread */ + rt_uint32_t user_data; /**< private user data beyond this thread */ + +#ifdef RT_USING_LWP + struct rt_lwp *lwp; /**< if NULL it's a kernel thread */ +#endif }; typedef struct rt_thread *rt_thread_t; |
