From ceabd82ac8e796249feacf39c836034ed5e11c6d Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 29 Nov 2025 15:01:34 -0500 Subject: chore: source code review and fixes. Signed-off-by: Amlal El Mahrouss --- src/kernel/KernelKit/HardwareThreadScheduler.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/kernel/KernelKit/HardwareThreadScheduler.h') diff --git a/src/kernel/KernelKit/HardwareThreadScheduler.h b/src/kernel/KernelKit/HardwareThreadScheduler.h index 36a870ba..6493e550 100644 --- a/src/kernel/KernelKit/HardwareThreadScheduler.h +++ b/src/kernel/KernelKit/HardwareThreadScheduler.h @@ -54,18 +54,18 @@ class HardwareThread final { operator bool(); public: - void Wake(const BOOL wakeup = false) noexcept; - void Busy(const BOOL busy = false) noexcept; + void Wake(const BOOL wakeup = false); + void Busy(const BOOL busy = false); public: BOOL Switch(HAL::StackFramePtr frame); - BOOL IsWakeup() noexcept; + BOOL IsWakeup(); public: - HAL::StackFramePtr StackFrame() noexcept; - ThreadKind& Kind() noexcept; - BOOL IsBusy() noexcept; - ThreadID& ID() noexcept; + HAL::StackFramePtr StackFrame(); + ThreadKind& Kind(); + BOOL IsBusy(); + ThreadID& ID(); private: HAL::StackFramePtr fStack{nullptr}; @@ -95,12 +95,12 @@ class HardwareThreadScheduler final : public ISchedulable { NE_COPY_DEFAULT(HardwareThreadScheduler) public: - HAL::StackFramePtr Leak() noexcept; + HAL::StackFramePtr Leak(); public: Ref operator[](SizeT idx); - bool operator!() noexcept; - operator bool() noexcept; + bool operator!(); + operator bool(); Bool IsUser() override { return Yes; } @@ -116,7 +116,7 @@ class HardwareThreadScheduler final : public ISchedulable { public: /// @brief Returns the amount of threads present in the system. /// @returns SizeT the amount of cores present. - SizeT Capacity() noexcept; + SizeT Capacity(); private: Array fThreadList; -- cgit v1.2.3