diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-07-29 14:43:49 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-07-29 14:43:49 +0200 |
| commit | 30411936809d66538ca279a5b5d20865c54afd5c (patch) | |
| tree | 5dddad5e034af9ef7dbd8fbd8934502fd2b37052 /Kernel/Sources | |
| parent | 6cfc4f283c8e068bc1345c46149b90a86be40a2f (diff) | |
[SMPManager.cxx] use EXTERN instead of raw extern.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Kernel/Sources')
| -rw-r--r-- | Kernel/Sources/SMPManager.cxx | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/Kernel/Sources/SMPManager.cxx b/Kernel/Sources/SMPManager.cxx index f5424525..155a1f86 100644 --- a/Kernel/Sources/SMPManager.cxx +++ b/Kernel/Sources/SMPManager.cxx @@ -22,29 +22,26 @@ namespace Kernel ///! A HardwareThread class takes care of it's owned hardware thread. ///! It has a stack for it's core. - ///! @brief constructor + ///! @brief C++ constructor. HardwareThread::HardwareThread() = default; - ///! @brief destructor + ///! @brief C++ destructor. HardwareThread::~HardwareThread() = default; - //! @brief returns the id - + //! @brief returns the id of the thread. const ThreadID& HardwareThread::ID() noexcept { return fID; } - //! @brief returns the kind - + //! @brief returns the kind of thread we have. const ThreadKind& HardwareThread::Kind() noexcept { return fKind; } - //! @brief is the core busy? - - bool HardwareThread::IsBusy() noexcept + //! @brief is the thread busy? + Bool HardwareThread::IsBusy() noexcept { return fBusy; } @@ -57,7 +54,7 @@ namespace Kernel return fStack; } - void HardwareThread::Busy(const bool busy) noexcept + Void HardwareThread::Busy(const Bool busy) noexcept { fBusy = busy; } @@ -69,7 +66,7 @@ namespace Kernel /// @brief Wakeup the processor. - void HardwareThread::Wake(const bool wakeup) noexcept + Void HardwareThread::Wake(const bool wakeup) noexcept { fWakeup = wakeup; @@ -79,13 +76,13 @@ namespace Kernel rt_wakeup_thread(fStack); } - extern bool rt_check_stack(HAL::StackFramePtr stackPtr); + EXTERN Bool rt_check_stack(HAL::StackFramePtr stackPtr); /// @brief Switch to hardware thread. /// @param stack the new hardware thread. /// @retval true stack was changed, code is running. /// @retval false stack is invalid, previous code is running. - bool HardwareThread::Switch(HAL::StackFramePtr stack) + Bool HardwareThread::Switch(HAL::StackFramePtr stack) { if (!rt_check_stack(stack)) { |
