We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c924330 commit 10a6827Copy full SHA for 10a6827
src/thread.c
100644
100755
@@ -151,6 +151,12 @@ static rt_err_t _rt_thread_init(struct rt_thread *thread,
151
thread->current_priority = priority;
152
153
thread->number_mask = 0;
154
+
155
+#ifdef RT_USING_EVENT
156
+ thread->event_set = 0;
157
+ thread->event_info = 0;
158
+#endif
159
160
#if RT_THREAD_PRIORITY_MAX > 32
161
thread->number = 0;
162
thread->high_mask = 0;
@@ -203,6 +209,13 @@ static rt_err_t _rt_thread_init(struct rt_thread *thread,
203
209
thread->lwp = RT_NULL;
204
210
#endif
205
211
212
213
+#ifdef RT_USING_MODULE
214
+ thread->module_id = 0;
215
216
217
+ thread->user_data = 0;
218
206
219
RT_OBJECT_HOOK_CALL(rt_thread_inited_hook, (thread));
207
220
208
221
return RT_EOK;
0 commit comments