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:
parent
f85ac23536
commit
3ae6c3c4f2
1 changed files with 5 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue