This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] PR libstdc++/80538 Only call sleep for non-zero values
- From: Bernhard Reutner-Fischer <rep dot dot dot nop at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org,Jonathan Wakely <jwakely at redhat dot com>,libstdc++ at gcc dot gnu dot org
- Date: Sat, 13 Oct 2018 09:48:48 +0200
- Subject: Re: [PATCH] PR libstdc++/80538 Only call sleep for non-zero values
- References: <20181011163751.GA8203@redhat.com> <20181011213614.GV23172@redhat.com>
On 11 October 2018 23:36:15 CEST, Jonathan Wakely <jwakely@redhat.com> wrote:
>But I'm assuming that systems with no usleep are probably rare, and
>can live with rounding up to sleep for a full second.
Well conforming implementations usually won't have usleep which was obscolencent in SUSv3 and removed from SUSv4.
As you certainly know we have clock_nanosleep / nanosleep nowadays.
thanks,