--- trunk/reactos/ntoskrnl/ke/kthread.c 2005-04-23 16:17:27 UTC (rev 14778)
+++ trunk/reactos/ntoskrnl/ke/kthread.c 2005-04-23 16:23:57 UTC (rev 14779)
@@ -782,7 +782,11 @@
/* Set the Thread to initalized */
Thread->State = Initialized;
- /* Insert the Thread into the Process's Thread List */
+ /*
+ * Insert the Thread into the Process's Thread List
+ * Note, this is the KTHREAD Thread List. It is removed in
+ * ke/kthread.c!KeTerminateThread.
+ */
InsertTailList(&Process->ThreadListHead, &Thread->ThreadListEntry);
DPRINT("Thread initalized\n");
}
--- trunk/reactos/ntoskrnl/ps/thread.c 2005-04-23 16:17:27 UTC (rev 14778)
+++ trunk/reactos/ntoskrnl/ps/thread.c 2005-04-23 16:23:57 UTC (rev 14779)
@@ -250,7 +250,11 @@
KernelStack);
}
- /* Insert into Process List */
+ /*
+ * Insert the Thread into the Process's Thread List
+ * Note, this is the ETHREAD Thread List. It is removed in
+ * ps/kill.c!PspExitThread.
+ */
DPRINT("Inserting into Process Thread List \n");
InsertTailList(&Process->ThreadListHead, &Thread->ThreadListEntry);