Explorar o código

[kernel] Fixed module issue.

weety %!s(int64=7) %!d(string=hai) anos
pai
achega
c8e64a629a
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/thread.c

+ 4 - 0
src/thread.c

@@ -185,6 +185,10 @@ static rt_err_t _rt_thread_init(struct rt_thread *thread,
                   0,
                   RT_TIMER_FLAG_ONE_SHOT);
 
+#ifdef RT_USING_MODULE
+    thread->module_id = RT_NULL;
+#endif
+
     /* initialize signal */
 #ifdef RT_USING_SIGNALS
     thread->sig_mask    = 0x00;