From 11ad9b56ccc1ed50c9293ee4771cf135f6b03c99 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 1 Aug 2025 09:16:50 +0100 Subject: fix: KernelKit: fix BinaryMutex object, it used to took USER_PROCESS as reference with a explicit default constructor. Signed-off-by: Amlal El Mahrouss --- dev/kernel/KernelKit/BinaryMutex.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dev/kernel/KernelKit/BinaryMutex.h') diff --git a/dev/kernel/KernelKit/BinaryMutex.h b/dev/kernel/KernelKit/BinaryMutex.h index 45d4bd8d..4a192bdd 100644 --- a/dev/kernel/KernelKit/BinaryMutex.h +++ b/dev/kernel/KernelKit/BinaryMutex.h @@ -24,16 +24,16 @@ class BinaryMutex final { bool Unlock() noexcept; public: - BOOL WaitForProcess(const Int16& sec) noexcept; + BOOL WaitForProcess(const UInt32& sec) noexcept; public: - bool Lock(USER_PROCESS& process); - bool LockOrWait(USER_PROCESS& process, TimerInterface* timer); + bool Lock(USER_PROCESS* process); + bool LockOrWait(USER_PROCESS* process, TimerInterface* timer); public: NE_COPY_DEFAULT(BinaryMutex) private: - USER_PROCESS& fLockingProcess; + USER_PROCESS* fLockingProcess; }; } // namespace Kernel -- cgit v1.2.3 From 23774eda327ec2dffbda34d907a3b70b7772c7b5 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Fri, 1 Aug 2025 10:33:29 +0100 Subject: fix: BinaryMutex: Assign `fLockingProcess` to nullptr. Signed-off-by: Amlal El Mahrouss --- dev/kernel/KernelKit/BinaryMutex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dev/kernel/KernelKit/BinaryMutex.h') diff --git a/dev/kernel/KernelKit/BinaryMutex.h b/dev/kernel/KernelKit/BinaryMutex.h index 4a192bdd..f2c15af0 100644 --- a/dev/kernel/KernelKit/BinaryMutex.h +++ b/dev/kernel/KernelKit/BinaryMutex.h @@ -34,6 +34,6 @@ class BinaryMutex final { NE_COPY_DEFAULT(BinaryMutex) private: - USER_PROCESS* fLockingProcess; + USER_PROCESS* fLockingProcess{nullptr}; }; } // namespace Kernel -- cgit v1.2.3