[*] Missing AU_LOCK_GUARD in IWorkItem::WaitFor non-array variant
This commit is contained in:
parent
286ae14a7b
commit
2c1d22ac13
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user