Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 2014 10:24:25 -0700
From:      Ian Lepore <ian@FreeBSD.org>
To:        "freebsd-hackers@freebsd.org" <freebsd-hackers@FreeBSD.org>
Subject:   What is the precision arg for callout_reset_sbt() and friends?
Message-ID:  <1393003465.1145.111.camel@revolution.hippie.lan>

next in thread | raw e-mail | index | archive | help
I can't figure out from the code or the manpage what should be passed as
the precision argument to the sleep-related functions that take sbintime
values.  It seems like most existing code passes 0, what effect does
that have?  What should I pass if precision really matters?  What if it
doesn't matter at all?

Most of the time I want something like a 1ms timeout where it really
isn't critical if it turns into 2 or even 5ms.  Other times when I say
1ms I really want something close to 1ms.

-- Ian





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