event/Loop: pass SocketEvent& to AbandonFD()

This commit is contained in:
Max Kellermann
2020-10-28 14:58:23 +01:00
parent 46418d0f2d
commit 65a1c4a016
3 changed files with 6 additions and 5 deletions

View File

@@ -103,13 +103,14 @@ EventLoop::Break() noexcept
}
bool
EventLoop::AbandonFD(int _fd) noexcept
EventLoop::AbandonFD(SocketEvent &event) noexcept
{
#ifdef HAVE_THREADED_EVENT_LOOP
assert(!IsAlive() || IsInside());
#endif
assert(event.IsDefined());
return poll_backend.Abandon(_fd);
return poll_backend.Abandon(event.GetSocket().Get());
}
bool