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).
This commit is contained in:
ragnarok-clanker 2026-11-06 12:12:39 +00:00
commit 3ae6c3c4f2

View file

@ -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) {