Apply consistent coding style
Some checks failed
Builds / ExectOS (i686, debug) (push) Failing after 30s
Builds / ExectOS (amd64, debug) (push) Failing after 31s
Builds / ExectOS (amd64, release) (push) Failing after 51s
Builds / ExectOS (i686, release) (push) Failing after 48s

This commit is contained in:
2026-04-09 11:42:41 +02:00
parent 1fa6e90439
commit 17f044cb3f
13 changed files with 108 additions and 108 deletions

View File

@@ -92,10 +92,10 @@ KE::KThread::InitializeThread(IN PKPROCESS Process,
Thread->Header.SignalState = 0;
/* Initialize thread wait list */
RtlInitializeListHead(&Thread->Header.WaitListHead);
RTL::LinkedList::InitializeListHead(&Thread->Header.WaitListHead);
/* Initialize thread mutant list head */
RtlInitializeListHead(&Thread->MutantListHead);
RTL::LinkedList::InitializeListHead(&Thread->MutantListHead);
/* Initialize the builtin wait blocks */
for(Index = 0; Index <= KTHREAD_WAIT_BLOCK; Index++)
@@ -113,7 +113,7 @@ KE::KThread::InitializeThread(IN PKPROCESS Process,
Thread->AdjustReason = AdjustNone;
/* Initialize thread lock */
SpinLock::InitializeSpinLock(&Thread->ThreadLock);
KE::SpinLock::InitializeSpinLock(&Thread->ThreadLock);
/* Initialize thread APC */
Thread->ApcStatePointer[0] = &Thread->ApcState;
@@ -123,21 +123,21 @@ KE::KThread::InitializeThread(IN PKPROCESS Process,
Thread->Process = Process;
/* Initialize APC list heads */
RtlInitializeListHead(&Thread->ApcState.ApcListHead[KernelMode]);
RtlInitializeListHead(&Thread->ApcState.ApcListHead[UserMode]);
RTL::LinkedList::InitializeListHead(&Thread->ApcState.ApcListHead[KernelMode]);
RTL::LinkedList::InitializeListHead(&Thread->ApcState.ApcListHead[UserMode]);
/* Initialize APC queue lock */
SpinLock::InitializeSpinLock(&Thread->ApcQueueLock);
KE::SpinLock::InitializeSpinLock(&Thread->ApcQueueLock);
/* Initialize kernel-mode suspend APC */
Apc::InitializeApc(&Thread->SuspendApc, Thread, OriginalApcEnvironment, SuspendNop,
SuspendRundown, SuspendThread, KernelMode, NULLPTR);
KE::Apc::InitializeApc(&Thread->SuspendApc, Thread, OriginalApcEnvironment, SuspendNop,
SuspendRundown, SuspendThread, KernelMode, NULLPTR);
/* Initialize suspend semaphore */
Semaphore::InitializeSemaphore(&Thread->SuspendSemaphore, 0, 2);
KE::Semaphore::InitializeSemaphore(&Thread->SuspendSemaphore, 0, 2);
/* Initialize the builtin timer */
Timer::InitializeTimer(&Thread->Timer, NotificationTimer);
KE::Timer::InitializeTimer(&Thread->Timer, NotificationTimer);
TimerWaitBlock = &Thread->WaitBlock[KTIMER_WAIT_BLOCK];
TimerWaitBlock->Object = &Thread->Timer;
TimerWaitBlock->WaitKey = STATUS_TIMEOUT;