[*] 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;
|
status = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
dependency->waiters_.push_back(shared_from_this());
|
if (!AuTryInsert(dependency->waiters_, AuSharedFromThis()))
|
||||||
this->waitOn_.push_back(workItem);
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!AuTryInsert(this->waitOn_, workItem))
|
||||||
|
{
|
||||||
|
AuTryRemove(dependency->waiters_, AuSharedFromThis());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (status)
|
if (status)
|
||||||
|
Loading…
Reference in New Issue
Block a user