[*] AuLoop: Fixed missing logic in a fast path
This commit is contained in:
parent
cbcd55ce8e
commit
3f7f2639c4
@ -109,14 +109,22 @@ namespace Aurora::IO::Loop
|
||||
return false;
|
||||
}
|
||||
|
||||
bool bStatus {};
|
||||
if (uTimeoutMS)
|
||||
{
|
||||
return pSource->WaitOn(uTimeoutMS.value());
|
||||
bStatus = pSource->WaitOn(uTimeoutMS.value());
|
||||
}
|
||||
else
|
||||
{
|
||||
return pSource->IsSignaled();
|
||||
bStatus = pSource->IsSignaled();
|
||||
}
|
||||
|
||||
if (bStatus)
|
||||
{
|
||||
signaled.push_back(pSource);
|
||||
}
|
||||
|
||||
return bStatus;
|
||||
}
|
||||
|
||||
auto uTimeoutEnd = uTimeoutMS ?
|
||||
|
Loading…
Reference in New Issue
Block a user