public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jaak at ristioja dot ee" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/60421] std::this_thread::sleep_for doesn't sleep for all arguments
Date: Thu, 26 Mar 2015 22:28:00 -0000 [thread overview]
Message-ID: <bug-60421-4-gl5NtD21iw@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-60421-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60421
--- Comment #5 from Jaak Ristioja <jaak at ristioja dot ee> ---
(In reply to Jonathan Wakely from comment #4)
> Fixed for gcc5.
Looking at the diff <thread> of revision 221708, I fail to see how the
if (__rtime <= __rtime.zero())
return;
check in sleep_for() prevents the EINVAL in nanosleep(3p), as is the original
issue.
I mean aren't we dealing here with unsigned (decltype(_rtime)) to signed
(std::time_t) conversion?
next prev parent reply other threads:[~2015-03-26 21:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-05 9:19 [Bug libstdc++/60421] New: " jaak at ristioja dot ee
2014-03-05 10:50 ` [Bug libstdc++/60421] " plasmahh at gmx dot net
2014-03-05 11:30 ` redi at gcc dot gnu.org
2014-09-19 10:30 ` redi at gcc dot gnu.org
2015-03-26 20:08 ` redi at gcc dot gnu.org
2015-03-26 20:14 ` redi at gcc dot gnu.org
2015-03-26 22:28 ` jaak at ristioja dot ee [this message]
2015-03-26 23:45 ` jaak at ristioja dot ee
2015-03-27 3:47 ` redi at gcc dot gnu.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-60421-4-gl5NtD21iw@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).