[*] Linux lower latency fix
This commit is contained in:
parent
e825531558
commit
9502930c1b
@ -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) ||
|
||||
|
Loading…
Reference in New Issue
Block a user