[lwp]给thread添加lwp成员

This commit is contained in:
heyuanjie
2018-07-30 11:12:12 +08:00
parent e6fedb6e9b
commit c79fbd373f
4 changed files with 15 additions and 10 deletions
+4
View File
@@ -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;