On Fri, Mar 20, 2009 at 07:46:51AM -0700, Dan Kegel wrote:
> On Fri, Mar 20, 2009 at 7:45 AM, Thor Lancelot Simon <t...@panix.com> wrote:
> >> The first way is what you have to do with Libevent 1.4.x and earlier;
> >> Libevent only supports one _pending_ event at a time per fd/operation
> >> pair. ?In other words, it's okay to have two events set to watch
> >> EV_WRITE on the same FD, but you can only ever add one at a time.
> >
> > 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?

-- 
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