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.

This is why I prefer edge-triggered notification...
- Dan
_______________________________________________
Libevent-users mailing list
Libevent-users@monkey.org
http://monkeymail.org/mailman/listinfo/libevent-users

Reply via email to