[*] Missing AU_LOCK_GUARD in IWorkItem::WaitFor non-array variant

This commit is contained in:
Reece Wilson 2022-05-17 00:46:25 +01:00
parent 286ae14a7b
commit 2c1d22ac13

View File

@ -42,8 +42,16 @@ namespace Aurora::Async
status = true;
}
dependency->waiters_.push_back(shared_from_this());
this->waitOn_.push_back(workItem);
if (!AuTryInsert(dependency->waiters_, AuSharedFromThis()))
{
return false;
}
if (!AuTryInsert(this->waitOn_, workItem))
{
AuTryRemove(dependency->waiters_, AuSharedFromThis());
return false;
}
}
if (status)