[*] TODO: sort out async run modes
This commit is contained in:
parent
a7730ed8ee
commit
09295e57f8
@ -314,23 +314,20 @@ 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
|
// 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
|
// 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))
|
(!AuBuild::kIsNtDerived))
|
||||||
|
{
|
||||||
|
asyncLoop->WaitAny(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&& (asyncLoop->WaitAny(0))
|
|
||||||
)
|
|
||||||
{
|
|
||||||
success = PollInternal(false, uCount);
|
success = PollInternal(false, uCount);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
|
||||||
success |= PollInternal(false, uCount);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
success = PollInternal(block, uCount);
|
success = PollInternal(block, uCount);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user