Re: interrupting kevent()

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Doran <ad@...>
Cc: <tech-kern@...>
Date: Wednesday, October 24, 2007 - 5:21 am

On Wed Oct 24 2007 at 02:36:32 +0100, Andrew Doran wrote:

Which race?  The "tickled" flag is set and checked for while holding
the lock.  Sleep is not entered in the first place if it is set.


Yes, "always".  Probably nothing to cry about, but why not get a little
gain for no cost?


It's always the main thread.

But that feels fuzzy and detached from the kqueue concept.  And besides
it would not work between processes sharing the fd table (I didn't test
my scheme to work in that case, but I don't see why it wouldn't).

-- 
Antti Kantee <pooka@iki.fi>                     Of course he runs NetBSD
http://www.iki.fi/pooka/                          http://www.NetBSD.org/
    "la qualité la plus indispensable du cuisinier est l'exactitude"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
interrupting kevent(), Antti Kantee, (Tue Oct 23, 8:45 am)
Re: interrupting kevent(), Bill Stouder-Studenmund, (Thu Oct 25, 1:52 am)
Re: interrupting kevent(), Antti Kantee, (Thu Oct 25, 6:44 am)
Re: interrupting kevent(), Bill Stouder-Studenmund, (Thu Oct 25, 1:43 pm)
Re: interrupting kevent(), Antti Kantee, (Fri Oct 26, 5:32 am)
Re: interrupting kevent(), Andrew Doran, (Tue Oct 23, 9:23 am)
Re: interrupting kevent(), Antti Kantee, (Tue Oct 23, 9:30 am)
Re: interrupting kevent(), Andrew Doran, (Tue Oct 23, 9:36 pm)
Re: interrupting kevent(), Antti Kantee, (Wed Oct 24, 5:21 am)
Re: interrupting kevent(), der Mouse, (Tue Oct 23, 11:50 am)