On Wed, May 28, 2014 at 10:43:09AM +0400, Nick Zavaritsky <[email protected]>
wrote:
> I am most interested in the epoll backend. Does libev issue a epoll_ctl() for
> every
> io watcher that changed mode in the last iteration or the behavior is somewhat
> more sophisticated (i.e. no epoll_ctl() when the ‘initial’ and ‘final’
> modes were the same)?
It is more sophisticated in the current implementation - for example,
libev will usually only invoke epoll_ctl after it receives an unwanted
event, i.e. when you stop to wait for EV_READ events, then libev will only
call epoll_ctl when it receives a read readiness notification.
I will also never issue epoll_ctl when the event set doesn't change.
--
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/cgi-bin/mailman/listinfo/libev