From cab7131a9eab7f06ba39260be477a1b4532705d8 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 23 Jul 2025 08:30:44 +0100 Subject: feat: sem: fix usage of 'kErrorNetworkTimeout' to 'kErrorTimeout' Signed-off-by: Amlal El Mahrouss --- dev/kernel/KernelKit/Semaphore.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dev/kernel') 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; } -- cgit v1.2.3