summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorheyuanjie <xx>2018-07-30 11:12:12 +0800
committerheyuanjie <xx>2018-07-30 11:12:12 +0800
commitc79fbd373fc8b300cb2f4564aa934a4e93b81547 (patch)
tree1a36c2e650fa13a66eecf21224eda29c567cb731 /src
parente6fedb6e9bfbef07c4bcc065a5538d466abee19f (diff)
[lwp]给thread添加lwp成员
Diffstat (limited to 'src')
-rw-r--r--src/thread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/thread.c b/src/thread.c
index 9e5c97983b..b3d91b30d0 100644
--- a/src/thread.c
+++ b/src/thread.c
@@ -199,6 +199,10 @@ static rt_err_t _rt_thread_init(struct rt_thread *thread,
thread->si_list = RT_NULL;
#endif
+#ifdef RT_USING_LWP
+ thread->lwp = RT_NULL;
+#endif
+
RT_OBJECT_HOOK_CALL(rt_thread_inited_hook, (thread));
return RT_EOK;