Re: kevent and wait time?
Re: kevent and wait time?
- Subject: Re: kevent and wait time?
- From: Dave Zarzycki <email@hidden>
- Date: Sun, 9 Apr 2006 20:07:07 -0700
On Apr 9, 2006, at 3:36 PM, email@hidden wrote:
Dave,
kqueue is not select/poll.
To better understand what I mean by that, consider calling kevent()
once per FD you allocate and only use kevent() to add to the kqueue.
I'm using the EV_SET macro to add to the queue, but my understanding
is that it's calling kevent() to do it.
It does not. It just helps you populate the structure.
Then, as a part of your event loop, only fetch one event with kevent
() and process it.
This is exactly what i'm doing ...
If you thought the EV_SET() macro called kevent(), then the rest of
your results are called into question.
but I don't see how specifying a timespec with 0 makes kevent()
return an event for some FD i've never heard of.
Are you checking the results of kevent()? That'll tell you how many of
the returned kevent structures you can safely look at, if any.
Good luck,
davez
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden