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?



On Apr 10, 2006, at 2:41 PM, email@hidden wrote:

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 really don't recommend that for any non-trivial use of kqueues. There are difficult state engine semantics to get right when you do so.


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()?

Nope, sorry. 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:
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>)
 >Re: kevent and wait time? (From: 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.