event/PollGroup: ReadEvents() returns PollResult

This commit is contained in:
Max Kellermann
2020-10-15 20:06:51 +02:00
parent 0ecc3394c3
commit 1473d8474f
7 changed files with 18 additions and 14 deletions

View File

@@ -257,8 +257,8 @@ EventLoop::Run() noexcept
/* wait for new event */
PollResult poll_result;
poll_group.ReadEvents(poll_result, ExportTimeoutMS(timeout));
const auto poll_result =
poll_group.ReadEvents(ExportTimeoutMS(timeout));
ready_sockets.clear();
for (size_t i = 0; i < poll_result.GetSize(); ++i) {