[*] Minor optimization in a shit primitive

This commit is contained in:
Reece Wilson 2023-09-02 19:09:04 +01:00
parent 0838373410
commit c2a6bd92fa

View File

@ -101,7 +101,15 @@ namespace Aurora::Threading::Primitives
SysAssertExp((this->bPermitMultipleTriggers_) || (!this->bTriggered_), "Can not trigger an awake event object");
this->bTriggered_ = true;
}
this->condition_.Broadcast();
if (this->bAtomicRelease_)
{
this->condition_.Signal();
}
else
{
this->condition_.Broadcast();
}
}
bool EventImpl::HasOSHandle(AuMach &mach)