diff options
| author | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-06-28 08:26:19 +0200 |
|---|---|---|
| committer | Amlal EL Mahrouss <amlalelmahrouss@icloud.com> | 2024-06-28 08:26:19 +0200 |
| commit | c142fe6fda7d09e929c9706b444cdc13ed5e72f3 (patch) | |
| tree | f42890096937271233da33d9c201043fb9960634 /Kernel/KernelKit/Semaphore.hpp | |
| parent | e32c206fe1d17eb96339b280c7f061e7201bd15b (diff) | |
IMP: Feature Pack #1
- Process scheduler.
- System calls.
- ACPI support.
- Driver kit.
- Filesystem support.
- Program loader.
- newstd/herror APIs.
Signed-off-by: Amlal EL Mahrouss <amlalelmahrouss@icloud.com>
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); |
