[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210512121858.GA6343@sirena.org.uk>
Date: Wed, 12 May 2021 13:18:58 +0100
From: Mark Brown <broonie@...nel.org>
To: Willy Tarreau <w@....eu>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] tools/nolibc: Implement msleep()
On Wed, May 12, 2021 at 01:59:49PM +0200, Willy Tarreau wrote:
> On Wed, May 12, 2021 at 12:47:28PM +0100, Mark Brown wrote:
> > - Return the number of seconds remaining if the delay does not
> > complete.
> But why returning the number of seconds instead of milliseconds ?
> The common use case is this:
> delay = delay_before_next_event();
> while ((ret = msleep(delay)) > 0)
> delay -= ret;
It seemed to be what you were asking for and I didn't have strong enough
opinions for it to be worth pushing back.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists