From 3ae6c3c4f2e527e9414fd7ef14a1dd7846bea5f2 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 12:12:39 +0000 Subject: [PATCH] Decompile fn_07568 (NAsyncWorkRequestQueue::Complete) Batch #13239 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_07568 NAsyncWorkRequestQueue::Complete: logic confirmed by peer review Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Utility/Async/NAsyncWorkQueue.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/Utility/Async/NAsyncWorkQueue.cpp b/Source/Utility/Async/NAsyncWorkQueue.cpp index 85b5a828..2ae69b5e 100644 --- a/Source/Utility/Async/NAsyncWorkQueue.cpp +++ b/Source/Utility/Async/NAsyncWorkQueue.cpp @@ -72,9 +72,11 @@ void NAsyncWorkRequestQueue::PushFront(NAsyncWorkPtr& work) { // FUNCTION: fn_07568 void NAsyncWorkRequestQueue::Complete(std::uint32_t group, std::uint32_t key) { NSyncObject held(&this->m_criticalSection); - auto active = std::find(this->m_active.begin(), this->m_active.end(), std::pair{group, key}); - if (active != this->m_active.end()) { - this->m_active.erase(active); + for (auto active = this->m_active.begin(); active != this->m_active.end(); ++active) { + if (active->first == group && active->second == key) { + this->m_active.erase(active); + break; + } } if (this->m_waiting) {