diff options
Diffstat (limited to 'dev/Kernel/KernelKit/Semaphore.h')
| -rw-r--r-- | dev/Kernel/KernelKit/Semaphore.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dev/Kernel/KernelKit/Semaphore.h b/dev/Kernel/KernelKit/Semaphore.h index 9ae3f617..41e02645 100644 --- a/dev/Kernel/KernelKit/Semaphore.h +++ b/dev/Kernel/KernelKit/Semaphore.h @@ -12,9 +12,9 @@ namespace Kernel { - class UserProcess; + class UserThread; - typedef UserProcess* UserProcessPtr; + typedef UserThread& UserProcessRef; /// @brief Access control class, which locks a task until one is done. class Semaphore final @@ -31,13 +31,13 @@ namespace Kernel void WaitForProcess() noexcept; public: - bool Lock(UserProcess* process); - bool LockOrWait(UserProcess* process, TimerInterface* timer); + bool Lock(UserThread& process); + bool LockOrWait(UserThread& process, TimerInterface* timer); public: ZKA_COPY_DEFAULT(Semaphore); private: - UserProcessPtr fLockingProcess{nullptr}; + UserProcessRef fLockingProcess; }; } // namespace Kernel |
