From 83de1721b5c35df8e5e8d37ad5a9359d72036fe2 Mon Sep 17 00:00:00 2001 From: Amlal Date: Wed, 29 Jan 2025 10:54:20 +0100 Subject: Tweaks and improvements. Signed-off-by: Amlal --- dev/Kernel/src/HardwareThreadScheduler.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dev/Kernel/src/HardwareThreadScheduler.cc') diff --git a/dev/Kernel/src/HardwareThreadScheduler.cc b/dev/Kernel/src/HardwareThreadScheduler.cc index 573b86d6..77d9d2dc 100644 --- a/dev/Kernel/src/HardwareThreadScheduler.cc +++ b/dev/Kernel/src/HardwareThreadScheduler.cc @@ -61,8 +61,8 @@ namespace Kernel /***********************************************************************************/ Bool HardwareThread::IsBusy() noexcept { - STATIC Int64 busy_timer = 0U; - STATIC Int64 timeout_max = 0x1000000; // an arbitrary value used to tell if the timeout hasn't been reached yet. + STATIC Int64 busy_timer = 0U; + STATIC Int64 timeout_max = 0x1000000; // an arbitrary value used to tell if the timeout hasn't been reached yet. if (fBusy && busy_timer > timeout_max) { @@ -112,8 +112,8 @@ namespace Kernel /***********************************************************************************/ Bool HardwareThread::Switch(VoidPtr image_ptr, Ptr8 stack_ptr, HAL::StackFramePtr frame, const ThreadID& pid) { - if (this->IsBusy()) - return NO; + if (this->IsBusy()) + return NO; this->fStack = frame; this->fSourcePID = pid; -- cgit v1.2.3