From 7f7e3e1cf6c207d1ecbe8e9dd5e738772e8d2cd2 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Sat, 23 Apr 2005 16:23:57 +0000 Subject: [PATCH] Add more detailed comment about ThreadListEntry so people don't get confused liek I did svn path=/trunk/; revision=14779 --- reactos/ntoskrnl/ke/kthread.c | 6 +++++- reactos/ntoskrnl/ps/thread.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/ke/kthread.c b/reactos/ntoskrnl/ke/kthread.c index e51bd6768a3..709f45d545c 100644 --- a/reactos/ntoskrnl/ke/kthread.c +++ b/reactos/ntoskrnl/ke/kthread.c @@ -782,7 +782,11 @@ KeInitializeThread(PKPROCESS Process, /* 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"); } diff --git a/reactos/ntoskrnl/ps/thread.c b/reactos/ntoskrnl/ps/thread.c index b69af6c2773..37115c636ba 100644 --- a/reactos/ntoskrnl/ps/thread.c +++ b/reactos/ntoskrnl/ps/thread.c @@ -250,7 +250,11 @@ PspCreateThread(OUT PHANDLE ThreadHandle, 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);