Closed SteveLauC closed 2 weeks ago
Remove EventFd::defuse() because it is a no-op, write(0)ing to an event fd does nothing. While in the documentation, it says:
EventFd::defuse()
write(0)
a following call to poll, select or epoll will block.
poll
select
epoll
which means that this method should reset the kernel counter to 0, but it won't.
Remove EventFd::arm() for symmetry reasons.
EventFd::arm()
Having read()/write() is already sufficient for usage.
read()/write()
Closes #2422
CONTRIBUTING.md
What does this PR do
Remove
EventFd::defuse()
because it is a no-op,write(0)
ing to an event fd does nothing. While in the documentation, it says:which means that this method should reset the kernel counter to 0, but it won't.
Remove
EventFd::arm()
for symmetry reasons.Having
read()/write()
is already sufficient for usage.Closes #2422
Checklist:
CONTRIBUTING.md