event/Loop: rename Abandon() to AbandonFD()

This commit is contained in:
Max Kellermann 2020-10-14 16:24:55 +02:00
parent 9f013f7de4
commit abf9ae2dd9
2 changed files with 4 additions and 4 deletions

View File

@ -101,7 +101,7 @@ EventLoop::Break() noexcept
}
bool
EventLoop::Abandon(int _fd) noexcept
EventLoop::AbandonFD(int _fd) noexcept
{
#ifdef HAVE_THREADED_EVENT_LOOP
assert(!IsAlive() || IsInside());

View File

@ -204,14 +204,14 @@ public:
return poll_group.Modify(_fd, flags, &m);
}
bool RemoveFD(int fd) noexcept;
/**
* Remove the given #SocketEvent after the file descriptor
* has been closed. This is like RemoveFD(), but does not
* attempt to use #EPOLL_CTL_DEL.
*/
bool Abandon(int fd) noexcept;
bool RemoveFD(int fd) noexcept;
bool AbandonFD(int fd) noexcept;
void AddIdle(IdleEvent &i) noexcept;
void RemoveIdle(IdleEvent &i) noexcept;