From c79fbd373fc8b300cb2f4564aa934a4e93b81547 Mon Sep 17 00:00:00 2001 From: heyuanjie Date: Mon, 30 Jul 2018 11:12:12 +0800 Subject: [lwp]给thread添加lwp成员 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/thread.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; -- cgit v1.3.1