Re: kevent and wait time?
Re: kevent and wait time?
- Subject: Re: kevent and wait time?
- From: Dave Zarzycki <email@hidden>
- Date: Mon, 10 Apr 2006 14:47:34 -0700
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:
This email sent to email@hidden