diff options
Diffstat (limited to 'Kernel/KernelKit/Semaphore.hpp')
| -rw-r--r-- | Kernel/KernelKit/Semaphore.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Kernel/KernelKit/Semaphore.hpp b/Kernel/KernelKit/Semaphore.hpp index 7850804d..83d711ed 100644 --- a/Kernel/KernelKit/Semaphore.hpp +++ b/Kernel/KernelKit/Semaphore.hpp @@ -7,6 +7,7 @@ #pragma once #include <NewKit/Defines.hpp> +#include <KernelKit/Timer.hpp> #include <CompilerKit/CompilerKit.hxx> namespace NewOS @@ -27,11 +28,11 @@ namespace NewOS bool Unlock() noexcept; public: - void Sync() noexcept; + void WaitForProcess() noexcept; public: bool Lock(ProcessHeader* process); - bool LockOrWait(ProcessHeader* process, const Int64& seconds); + bool LockOrWait(ProcessHeader* process, HardwareTimerInterface* timer); public: NEWOS_COPY_DEFAULT(Semaphore); |
