From 99826c21b9da1c3a74fd8b3ebc08c7f8dbfadd30 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 14 Jan 2025 11:52:02 +0100 Subject: T& Labs's ZKA, Multi-Processor Operating System. Signed-off-by: Amlal El Mahrouss --- dev/Kernel/src/Semaphore.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dev/Kernel/src/Semaphore.cc') diff --git a/dev/Kernel/src/Semaphore.cc b/dev/Kernel/src/Semaphore.cc index 34bd2172..47626f13 100644 --- a/dev/Kernel/src/Semaphore.cc +++ b/dev/Kernel/src/Semaphore.cc @@ -1,6 +1,6 @@ /* ------------------------------------------- - Copyright (C) 2024, t& Corporation, all rights reserved. + Copyright (C) 2024, t& Labs, all rights reserved. ------------------------------------------- */ @@ -15,7 +15,7 @@ namespace Kernel Bool Semaphore::Unlock() noexcept { if (fLockingProcess) - fLockingProcess = UserThread(); + fLockingProcess = UserProcess(); else return No; @@ -25,7 +25,7 @@ namespace Kernel /***********************************************************************************/ /// @brief Locks process in the semaphore. /***********************************************************************************/ - Bool Semaphore::Lock(UserThread& process) + Bool Semaphore::Lock(UserProcess& process) { if (!process || fLockingProcess) return No; @@ -46,7 +46,7 @@ namespace Kernel /***********************************************************************************/ /// @brief Try lock or wait. /***********************************************************************************/ - Bool Semaphore::LockOrWait(UserThread& process, TimerInterface* timer) + Bool Semaphore::LockOrWait(UserProcess& process, TimerInterface* timer) { if (timer == nullptr) return No; -- cgit v1.2.3