[*] Linux lower latency fix

This commit is contained in:
Reece Wilson 2023-08-15 19:13:56 +01:00
parent e825531558
commit 9502930c1b

View File

@ -66,11 +66,9 @@ namespace Aurora::IO::UNIX
{
SysPushErrorCatch("IO Callback threw an exception");
}
IoTlsRedo();
}
UNIX::SendIOBuffers();
IoTlsRedo();
return;
}
@ -453,6 +451,7 @@ namespace Aurora::IO::UNIX
return -1;
}
bool bAgain {};
do
{
if (timeout)
@ -519,7 +518,14 @@ namespace Aurora::IO::UNIX
}
}
} while (timeout || AuExchange(io->bPollHit, false));
bAgain = AuExchange(io->bPollHit, false);
if (bAgain)
{
(void)LinuxOverlappedTrySubmitWork();
}
} while (timeout || AuExchange(bAgain, false));
return dwApcsSent;
}
@ -579,7 +585,8 @@ namespace Aurora::IO::UNIX
bool bEpollTriggered {};
io_event ioEvents[512];
int temp;
int temp {};
bool bAgain {};
do
{
@ -655,7 +662,13 @@ namespace Aurora::IO::UNIX
}
}
} while ((timeout ? !bEpollTriggered : false) || AuExchange(io->bPollHit, false));
bAgain = AuExchange(io->bPollHit, false);
if (bAgain)
{
(void)LinuxOverlappedTrySubmitWork();
}
} while ((timeout ? !bEpollTriggered : false) || AuExchange(bAgain, false));
io_event finalEpollEvent {};
if ((bEpollTriggered) ||