From 78772d95f14818efadc676651d30b04f6ae57c7d Mon Sep 17 00:00:00 2001 From: Amlal Date: Sun, 22 Dec 2024 16:50:01 +0100 Subject: IMPL: Issue #4 Fixing a bug within the scheduler, which causes a SIGKILL to happen. Signed-off-by: Amlal --- dev/Kernel/KernelKit/HardwareThreadScheduler.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dev/Kernel/KernelKit/HardwareThreadScheduler.h') diff --git a/dev/Kernel/KernelKit/HardwareThreadScheduler.h b/dev/Kernel/KernelKit/HardwareThreadScheduler.h index 8b6c2a90..7af4d74b 100644 --- a/dev/Kernel/KernelKit/HardwareThreadScheduler.h +++ b/dev/Kernel/KernelKit/HardwareThreadScheduler.h @@ -61,7 +61,7 @@ namespace Kernel void Busy(const bool busy = false) noexcept; public: - bool Switch(VoidPtr image, Ptr8 stack_ptr, HAL::StackFramePtr frame, const ProcessID& pid); + bool Switch(VoidPtr image, Ptr8 stack_ptr, HAL::StackFramePtr frame, const ThreadID& pid); bool IsWakeup() noexcept; public: @@ -74,9 +74,9 @@ namespace Kernel HAL::StackFramePtr fStack{nullptr}; ThreadKind fKind{ThreadKind::kAPStandard}; ThreadID fID{0}; - ProcessID fSourcePID{-1}; - Bool fWakeup{false}; - Bool fBusy{false}; + ThreadID fSourcePID{0}; + Bool fWakeup{NO}; + Bool fBusy{NO}; UInt64 fPTime{0}; private: -- cgit v1.2.3