[*] TODO: sort out async run modes
This commit is contained in:
parent
a7730ed8ee
commit
09295e57f8
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user