You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EventFd::defuse is implemented and documented as follows:
/// Defuses `self`, a following call to `poll`, `select` or `epoll` will block./// /// [`EventFd::write`] with `0`.pubfndefuse(&self) -> Result<usize>{self.write(0)}
However, writing to an eventfd adds the number written to a counter maintained in the event, so zero does not have any effect. To achieve the documented effect of causing the next call to block (for POLLIN, presumably), defuse should be implemented as self.read().
The text was updated successfully, but these errors were encountered:
EventFd::defuse
is implemented and documented as follows:However, writing to an eventfd adds the number written to a counter maintained in the event, so zero does not have any effect. To achieve the documented effect of causing the next call to block (for
POLLIN
, presumably),defuse
should be implemented asself.read()
.The text was updated successfully, but these errors were encountered: