summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/src/Semaphore.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dev/Kernel/src/Semaphore.cc')
-rw-r--r--dev/Kernel/src/Semaphore.cc8
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;