Revision ad898009

View differences:

kernel/patches/introduce-thread-hierarchy.patch
178 178
 
179 179
   tp->prio      = prio;
180 180
   tp->state     = CH_STATE_WTSTART;
181
@@ -110,6 +155,17 @@ thread_t *_thread_init(thread_t *tp, const char *name, tprio_t prio) {
181
@@ -110,6 +155,15 @@ thread_t *_thread_init(thread_t *tp, const char *name, tprio_t prio) {
182 182
 #else
183 183
   (void)name;
184 184
 #endif
......
190 190
+    tp->sibling = NULL;
191 191
+  }
192 192
+  tp->children = NULL;
193
+#else
194
+  (void)parent;
195 193
+#endif
196 194
 #if CH_CFG_USE_WAITEXIT == TRUE
197 195
   list_init(&tp->waiting);

Also available in: Unified diff