Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kevent and wait time?




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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to 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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.