Date: Thu, 03 Jan 2008 01:07:21 +0100 From: Andre Oppermann <andre@freebsd.org> To: Poul-Henning Kamp <phk@phk.freebsd.dk> Cc: Attilio Rao <attilio@freebsd.org>, arch@freebsd.org, Robert Watson <rwatson@freebsd.org>, freebsd-arch@freebsd.org Subject: Re: New "timeout" api, to replace callout Message-ID: <477C2739.5000902@freebsd.org> In-Reply-To: <2067.1199316383@critter.freebsd.dk> References: <2067.1199316383@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
Poul-Henning Kamp wrote: > In message <477C1CF3.6070301@freebsd.org>, Andre Oppermann writes: > >> I fear we have to go for the latter. Getting a non-sleeping callout >> drain seems to be non-trivial. > > There is a crucial difference between "non-sleeping" and "not sleeping > on my lock" that you should be very careful about in this context. > > Which is your requirement ? Calling timeout_drain() must not sleep and not drop the lock in this context (while making any pending timeout go away forever). -- Andre
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?477C2739.5000902>