[*] TODO: sort out async run modes

This commit is contained in:
Reece Wilson 2023-06-26 08:11:45 +01:00
parent a7730ed8ee
commit 09295e57f8

View File

@ -314,21 +314,18 @@ namespace Aurora::Async
}
}
if (bShouldTrySleepForKernel
if (bShouldTrySleepForKernel)
{
// epoll and such like can be checked without read success. kevent works on availablity, not scheduling read like iosubmit
// allow windows to atomically pump instead of wasting time buffering the primitives state
&& ((AuBuild::kIsNtDerived && runMode == ERunMode::eEfficient) ||
if ((AuBuild::kIsNtDerived && runMode == ERunMode::eEfficient) ||
(!AuBuild::kIsNtDerived))
&& (asyncLoop->WaitAny(0))
)
{
success = PollInternal(false, uCount);
}
else
{
success |= PollInternal(false, uCount);
{
asyncLoop->WaitAny(0);
}
}
success = PollInternal(false, uCount);
}
else
{