• 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: email@hidden
  • Date: Mon, 10 Apr 2006 14:41:18 -0700


Dave,

Please read the man page again. Please note the long standing Unix tradition of returning -1 on failure. I doubt your code is handling that correctly.

Yes, I caught that as well a bit ago and changed the code. I do appreciate the help, though -- I want to really understand this, and you've provided some good insight that helps me in those endeavors.


Also, please note: Unless you like pain, please don't do the following:

1) Add more than one event at a time.
2) Get more than one event at a time.
3) Add and get events in the same call to kevent().

Those cases, while powerful, are also riddled with complications of use that are far beyond the scope of this e-mail thread. Trust me, you can write very efficient/fast code without using those cases.

I only add one event at a time, though I do currently get more than 1. I don't want to add anymore noise to this list, so do you know of a good reference that describes kqueues really well (among other things i'm sure)? Perhaps some reference that describes /dev/poll as well on Linux, and (one can hope, because I want to test this as well) modwatch()?


Regards,

John

Falling You - exploring the beauty of voice and sound
http://www.fallingyou.com











_______________________________________________
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: Dave Zarzycki <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)
 >Re: kevent and wait time? (From: Dave Zarzycki <email@hidden>)
 >Re: kevent and wait time? (From: email@hidden)
 >Re: kevent and wait time? (From: Dave Zarzycki <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