diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-01-14 11:52:02 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-01-14 11:54:18 +0100 |
| commit | 99826c21b9da1c3a74fd8b3ebc08c7f8dbfadd30 (patch) | |
| tree | 6cfa8f7d18ed018917ea5609aeba1d870cd4e27a /dev/Kernel/src/Semaphore.cc | |
| parent | 39d565d61bb9f9926806bb87abb48f93d0b981f8 (diff) | |
T& Labs's ZKA, Multi-Processor Operating System.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/src/Semaphore.cc')
| -rw-r--r-- | dev/Kernel/src/Semaphore.cc | 8 |
1 files changed, 4 insertions, 4 deletions
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; |
