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 23:45:00 -0000 [thread overview] Message-ID: <bug-60421-4-FTQAoLGs0M@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 Jaak Ristioja <jaak at ristioja dot ee> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #6 from Jaak Ristioja <jaak at ristioja dot ee> --- I mean when I sleep for UINT64_MAX hours/years/millenia, you can't possibly wrap that into a single nanosleep call due to the limitations of the type time_t of the tv_sec parameter of the first argument to nanosleep. One obviously can not get around using loop. Additionally, the nanosleep code is also missing proper EINTR handling, which again could break the sleep. Reopening.
next prev parent reply other threads:[~2015-03-26 21:51 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 2015-03-26 23:45 ` jaak at ristioja dot ee [this message] 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-FTQAoLGs0M@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: linkBe 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).