From 854a8c8eefe33adf93912e6a36bc9351fb0ca91e Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Wed, 17 Jun 2026 20:40:23 +0200 Subject: [PATCH] Document the backlinking --- xtoskrnl/ke/kthread.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/xtoskrnl/ke/kthread.cc b/xtoskrnl/ke/kthread.cc index 7cc6182..79640f9 100644 --- a/xtoskrnl/ke/kthread.cc +++ b/xtoskrnl/ke/kthread.cc @@ -278,6 +278,7 @@ KE::KThread::InitializeThread(IN PKPROCESS Process, /* Initialize the builtin wait blocks */ for(Index = 0; Index <= KTHREAD_WAIT_BLOCK; Index++) { + /* Backlink the wait block to the owning thread */ Thread->WaitBlock[Index].Thread = Thread; }