From e5edad799f0f8dbe0b34baf55c30849c941a43f9 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 20 Aug 2025 21:22:16 +0200 Subject: feat: Heavily reworked the SMP subsystem paper. refactor: BinaryMutex implementation and paper has been reworked as well using LockAndWait instead of LockOrWait. other: Reworked tooling macros. Signed-off-by: Amlal El Mahrouss --- dev/kernel/KernelKit/BinaryMutex.h | 2 +- dev/kernel/src/BinaryMutex.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'dev/kernel') diff --git a/dev/kernel/KernelKit/BinaryMutex.h b/dev/kernel/KernelKit/BinaryMutex.h index f2c15af0..abe8d517 100644 --- a/dev/kernel/KernelKit/BinaryMutex.h +++ b/dev/kernel/KernelKit/BinaryMutex.h @@ -28,7 +28,7 @@ class BinaryMutex final { public: bool Lock(USER_PROCESS* process); - bool LockOrWait(USER_PROCESS* process, TimerInterface* timer); + bool LockAndWait(USER_PROCESS* process, TimerInterface* timer); public: NE_COPY_DEFAULT(BinaryMutex) diff --git a/dev/kernel/src/BinaryMutex.cc b/dev/kernel/src/BinaryMutex.cc index 9bfb89d9..3fef477c 100644 --- a/dev/kernel/src/BinaryMutex.cc +++ b/dev/kernel/src/BinaryMutex.cc @@ -46,7 +46,7 @@ Bool BinaryMutex::IsLocked() const { /// @brief Try lock or wait. /***********************************************************************************/ -Bool BinaryMutex::LockOrWait(USER_PROCESS* process, TimerInterface* timer) { +Bool BinaryMutex::LockAndWait(USER_PROCESS* process, TimerInterface* timer) { if (timer == nullptr) return No; this->Lock(process); -- cgit v1.2.3