On Sun, Dec 25, 2022 at 09:09:26PM -0800, Michael Stein <[email protected]> wrote:
> So I'm not sure when anyone would use ev_io_modify....
The documentatioon explains it: it is faster with some backends (e.g.
epoll) because the file description is assumed to change. When using
ev_io_Set, libev assumes that the file description might have changed.
> When io_cb gets control it has nothing to send so it uses ev_io_modify
> to turn off EV_WRITE:
Did you stop the watcher before calling ev_io_modify?
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / [email protected]
-=====/_/_//_/\_,_/ /_/\_\
_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/mailman/listinfo/libev