• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: kevent and wait time?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: kevent and wait time?
      • From: email@hidden
References: 
 >kevent and wait time? (From: email@hidden)
 >Re: kevent and wait time? (From: Dave Zarzycki <email@hidden>)
 >Re: kevent and wait time? (From: email@hidden)

  • Prev by Date: Re: kevent and wait time?
  • Next by Date: Re: kevent and wait time?
  • Previous by thread: Re: kevent and wait time?
  • Next by thread: Re: kevent and wait time?
  • Index(es):
    • Date
    • Thread