Re: [RFC] A more general timeout specification

Joe Korty
2005-05-19T13:25:48Z

On Thu, May 19, 2005 at 01:49:11AM +0200, Andi Kleen wrote:
> Joe Korty <joe.korty@ccur.com> writes:
>
> > The fusyn (robust mutexes) project proposes the creation
> > of a more general data structure, 'struct timeout', for the
> > specification of timeouts in new services. In this structure,
> > the user specifies:
> >
> > a time, in timespec format.
> > the clock the time is specified against (eg, CLOCK_MONOTONIC).
> > whether the time is absolute, or relative to 'now'.
>
> If you do a new structure for this I would suggest adding a
> "precision" field (or the same with a different name). Basically
> precision would tell the kernel that the wakeup can be in a time
> range, not necessarily on the exact time specified.

Very cool.
Joe