diff options
| author | Amlal <amlal.elmahrouss@icloud.com> | 2025-01-29 10:54:20 +0100 |
|---|---|---|
| committer | Amlal <amlal.elmahrouss@icloud.com> | 2025-01-29 10:54:20 +0100 |
| commit | 83de1721b5c35df8e5e8d37ad5a9359d72036fe2 (patch) | |
| tree | c451a2f6dec7a64100e3fb42833daa9c03c8c604 /dev/Kernel/src/HardwareThreadScheduler.cc | |
| parent | b6464d3fcd11ad43d1d0421fa8484eda2ac1708f (diff) | |
Tweaks and improvements.
Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/src/HardwareThreadScheduler.cc')
| -rw-r--r-- | dev/Kernel/src/HardwareThreadScheduler.cc | 8 |
1 files changed, 4 insertions, 4 deletions
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; |
