summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/KernelKit/Semaphore.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-01-14 11:52:02 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-01-14 11:54:18 +0100
commit99826c21b9da1c3a74fd8b3ebc08c7f8dbfadd30 (patch)
tree6cfa8f7d18ed018917ea5609aeba1d870cd4e27a /dev/Kernel/KernelKit/Semaphore.h
parent39d565d61bb9f9926806bb87abb48f93d0b981f8 (diff)
T& Labs's ZKA, Multi-Processor Operating System.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/KernelKit/Semaphore.h')
-rw-r--r--dev/Kernel/KernelKit/Semaphore.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/dev/Kernel/KernelKit/Semaphore.h b/dev/Kernel/KernelKit/Semaphore.h
index 11e04b90..a3904f01 100644
--- a/dev/Kernel/KernelKit/Semaphore.h
+++ b/dev/Kernel/KernelKit/Semaphore.h
@@ -1,6 +1,6 @@
/* -------------------------------------------
- Copyright (C) 2024, t& Corporation, all rights reserved.
+ Copyright (C) 2024, t& Labs, all rights reserved.
------------------------------------------- */
@@ -12,9 +12,9 @@
namespace Kernel
{
- class UserThread;
+ class UserProcess;
- typedef UserThread& UserProcessRef;
+ typedef UserProcess& UserProcessRef;
/// @brief Access control class, which locks a task until one is done.
class Semaphore final
@@ -31,8 +31,8 @@ namespace Kernel
void WaitForProcess() noexcept;
public:
- bool Lock(UserThread& process);
- bool LockOrWait(UserThread& process, TimerInterface* timer);
+ bool Lock(UserProcess& process);
+ bool LockOrWait(UserProcess& process, TimerInterface* timer);
public:
ZKA_COPY_DEFAULT(Semaphore);