From daeb5ba06f5451bcff70fdf155695361fe4fe9d7 Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Sat, 18 Nov 2023 09:19:10 +0000 Subject: [PATCH] [*] Reference futex semaphore fix timeout = 0 under ::LockNS --- Include/Aurora/Threading/Waitables/FutexSemaphoreWaitable.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Include/Aurora/Threading/Waitables/FutexSemaphoreWaitable.hpp b/Include/Aurora/Threading/Waitables/FutexSemaphoreWaitable.hpp index 95247007..fd48b6e0 100644 --- a/Include/Aurora/Threading/Waitables/FutexSemaphoreWaitable.hpp +++ b/Include/Aurora/Threading/Waitables/FutexSemaphoreWaitable.hpp @@ -111,7 +111,7 @@ namespace Aurora::Threading::Waitables return true; } - auto qwEndTime = Time::SteadyClockNS() + qwTimeout; + auto qwEndTime = qwTimeout ? Time::SteadyClockNS() + qwTimeout : 0; if (TryLock()) {