From b9e8b138f7b7d0f3c1dd82b7344f507c52a1ad51 Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Sat, 2 Dec 2023 03:35:24 +0000 Subject: [PATCH] [*] Further optimize AuWakeOnAddress (signaling) --- Source/Threading/AuWakeOnAddress.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Threading/AuWakeOnAddress.cpp b/Source/Threading/AuWakeOnAddress.cpp index 42341bf1..643a2571 100644 --- a/Source/Threading/AuWakeOnAddress.cpp +++ b/Source/Threading/AuWakeOnAddress.cpp @@ -283,6 +283,11 @@ namespace Aurora::Threading { bool bRetStatus { true }; + if (AuAtomicLoad((AuUInt *)&this->waitList.pTail) == 0) + { + return true; + } + Lock(); { // FIFO