mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 18:02:05 +00:00
Remove the thread from the list when terminating.
svn path=/trunk/; revision=14763
This commit is contained in:
parent
3ff5700950
commit
ff121124b1
1 changed files with 3 additions and 0 deletions
|
@ -1138,6 +1138,9 @@ KeTerminateThread(IN KPRIORITY Increment)
|
||||||
DPRINT("Terminating\n");
|
DPRINT("Terminating\n");
|
||||||
OldIrql = KeAcquireDispatcherDatabaseLock();
|
OldIrql = KeAcquireDispatcherDatabaseLock();
|
||||||
|
|
||||||
|
/* Remove the thread from the list */
|
||||||
|
RemoveEntryList(&Thread->ThreadListEntry);
|
||||||
|
|
||||||
/* Insert into the Reaper List */
|
/* Insert into the Reaper List */
|
||||||
DPRINT("List: %p\n", PspReaperList);
|
DPRINT("List: %p\n", PspReaperList);
|
||||||
((PETHREAD)Thread)->ReaperLink = PspReaperList;
|
((PETHREAD)Thread)->ReaperLink = PspReaperList;
|
||||||
|
|
Loading…
Reference in a new issue