summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-07-31 12:00:25 +0800
committerGitHub <[email protected]>2018-07-31 12:00:25 +0800
commit290eeb455b84ba06c62fcb40575e4837f677b4b5 (patch)
treeb1fd55c0615581ebf47f7817c2dd0ee03da8cab7 /src
parente6fedb6e9bfbef07c4bcc065a5538d466abee19f (diff)
parent2373a9c7beaf52cb65630e32b080ef293504f6b5 (diff)
Merge pull request #1675 from heyuanjie87/lwp
[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;