diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-07-23 08:32:09 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-07-23 08:32:09 +0100 |
| commit | ca7b843f1c15dd479d287f93221cd23e74d94385 (patch) | |
| tree | 2631513bc6485916076d848be02e868ead5e95ae /dev/kernel/KernelKit/Semaphore.h | |
| parent | cab7131a9eab7f06ba39260be477a1b4532705d8 (diff) | |
feat: new 'kErrorAccessDenied' type for semaphore api.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/KernelKit/Semaphore.h')
| -rw-r--r-- | dev/kernel/KernelKit/Semaphore.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/kernel/KernelKit/Semaphore.h b/dev/kernel/KernelKit/Semaphore.h index 7957ce31..6905c8cc 100644 --- a/dev/kernel/KernelKit/Semaphore.h +++ b/dev/kernel/KernelKit/Semaphore.h @@ -75,7 +75,7 @@ inline BOOL rtl_sem_wait(Semaphore& sem, UInt64 owner, UInt64 timeout, BOOL* con if (!condition || *condition) { if (sem[kSemaphoreCountIndex] == 0) { - err_global_get() = kErrorTimeout; + err_global_get() = kErrorAccessDenied; 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() = kErrorTimeout; + err_global_get() = kErrorAccessDenied; return FALSE; } |
