Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Dec 2007 08:55:45 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        phk@phk.freebsd.dk
Cc:        arch@FreeBSD.ORG
Subject:   Re: New "timeout" api, to replace callout 
Message-ID:  <20071202.085545.177225588.imp@bsdimp.com>
In-Reply-To: <19518.1196609689@critter.freebsd.dk>
References:  <20071202072658.A9217@xorpc.icir.org> <19518.1196609689@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <19518.1196609689@critter.freebsd.dk>
            "Poul-Henning Kamp" <phk@phk.freebsd.dk> writes:
: >"periodically with whatever period is convenient to you" is
: >a legitimate request that client code might have.
: >(I understand that this concept of time is very southern european :)
: 
: I disagree, that case, should be "with a period between N and M,
: at your choice".
: 
: And yes, it may be that we need to extend the API for that, but
: please give a concrete example so we know what we're talking about.

There are a number of places in the tree that use a parameter of '1'
today to mean "next time that's convenient."  Some of these places are
clever and know that HZ is never < 100 or > 1000 (or so they think),
while others are just sloppy code.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071202.085545.177225588.imp>