mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 18:57:16 +08:00
[lwp]给thread添加lwp成员
This commit is contained in:
+5
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user