diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-02-28 05:46:39 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-02-28 05:46:39 +0100 |
| commit | 71712510e7e93b6ea2159251998287d6e3b9d077 (patch) | |
| tree | 9801209c3e81d3b56e3205a434183c19a8772c41 /src/kernel/KernelKit/Semaphore.h | |
| parent | 0ca3a9f2453e3d9a9b4d96d3eb3b55e416939f30 (diff) | |
chore: kernel: DmaKit and Semaphore tweaks.
chore: cpp_style: C++ style specs update.
chore: src: update copyright year.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/kernel/KernelKit/Semaphore.h')
| -rw-r--r-- | src/kernel/KernelKit/Semaphore.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/kernel/KernelKit/Semaphore.h b/src/kernel/KernelKit/Semaphore.h index 523d184f..2a976c31 100644 --- a/src/kernel/KernelKit/Semaphore.h +++ b/src/kernel/KernelKit/Semaphore.h @@ -1,9 +1,9 @@ -// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org) +// Copyright 2024-2026, Amlal El Mahrouss (amlal@nekernel.org) // Licensed under the Apache License, Version 2.0 (see LICENSE file) // Official repository: https://github.com/nekernel-org/nekernel -#ifndef KERNELKIT_TLS_H -#define KERNELKIT_TLS_H +#ifndef KERNELKIT_SEMAPHORE_H +#define KERNELKIT_SEMAPHORE_H /// @author Amlal El Mahrouss /// @file Semaphore.h @@ -68,7 +68,7 @@ inline bool rtl_sem_wait(SemaphoreArr& sem, const UInt64 owner, const UInt64 tim return false; } - if (timeout < 1) { + if (timeout == 0) { err_global_get() = kErrorTimeout; return false; @@ -110,4 +110,4 @@ inline bool rtl_sem_wait(SemaphoreArr& sem, const UInt64 owner, const UInt64 tim } // namespace Kernel -#endif // !KERNELKIT_TLS_H
\ No newline at end of file +#endif // !KERNELKIT_SEMAPHORE_H |
