On Fri, Mar 20, 2009 at 08:13:05AM -0700, Dan Kegel wrote:
> On Fri, Mar 20, 2009 at 8:06 AM, Thor Lancelot Simon <t...@panix.com> wrote:
> >> > Just to clarify: I can add two events, one for EV_READ and one for
> >> > EV_WRITE, on the same FD, with different callbacks, and that _will_
> >> > work as expected?
> >>
> >> Even if that works, isn't it inefficient at the syscall level somehow?
> >
> > I can't think of why it would be. ?Can you explain?
> 
> Try doing it under strace and see what happens.
> I seem to recall it caused one epoll syscall per event
> on each time around the event loop.

Ugh.  That sounds like a terrible limitation of epoll.  A syscall
_per event_?

Once again I'm glad to not be using Linux.

-- 
Thor Lancelot Simon                                        t...@rek.tjls.com
    "Even experienced UNIX users occasionally enter rm *.* at the UNIX
     prompt only to realize too late that they have removed the wrong
     segment of the directory structure." - Microsoft WSS whitepaper
_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users

Reply via email to