diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-07-23 08:30:44 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-07-23 08:30:44 +0100 |
| commit | cab7131a9eab7f06ba39260be477a1b4532705d8 (patch) | |
| tree | ba83fdca7438343d10c069d1a820c73f7c3a7400 /dev/kernel/KernelKit | |
| parent | b17e50f399180aa1fed136a0917625bb0d9ebf81 (diff) | |
feat: sem: fix usage of 'kErrorNetworkTimeout' to 'kErrorTimeout'
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/KernelKit')
| -rw-r--r-- | dev/kernel/KernelKit/Semaphore.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/kernel/KernelKit/Semaphore.h b/dev/kernel/KernelKit/Semaphore.h index 8bb8c1fe..7957ce31 100644 --- a/dev/kernel/KernelKit/Semaphore.h +++ b/dev/kernel/KernelKit/Semaphore.h @@ -68,14 +68,14 @@ inline BOOL rtl_sem_wait(Semaphore& sem, UInt64 owner, UInt64 timeout, BOOL* con } if (timeout <= 0) { - err_global_get() = kErrorNetworkTimeout; + err_global_get() = kErrorTimeout; return FALSE; } if (!condition || *condition) { if (sem[kSemaphoreCountIndex] == 0) { - err_global_get() = kErrorNetworkTimeout; + err_global_get() = kErrorTimeout; return FALSE; } @@ -91,7 +91,7 @@ inline BOOL rtl_sem_wait(Semaphore& sem, UInt64 owner, UInt64 timeout, BOOL* con if (ret) { if (!condition || *condition) { if (sem[kSemaphoreCountIndex] == 0) { - err_global_get() = kErrorNetworkTimeout; + err_global_get() = kErrorTimeout; return FALSE; } |
