diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/thread.c | 4 |
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; |
