This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52680] std::this_thread::sleep_for #ifdef'd out by _GLIBCXX_USE_NANOSLEEP
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 31 Mar 2012 15:19:38 +0000
- Subject: [Bug c++/52680] std::this_thread::sleep_for #ifdef'd out by _GLIBCXX_USE_NANOSLEEP
- Auto-submitted: auto-generated
- References: <bug-52680-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52680
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-03-31
Ever Confirmed|0 |1
Severity|normal |enhancement
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-03-31 15:19:38 UTC ---
ok, great :) As I said, we do need to revisit the configure-time checks which
determine whether to use nanonsleep and sched_yield. Doing so is on my TODO
list so I'm going to confirm this PR but as an enhancement rather than a bug.
For the benefit of the other maintainers: in some off-list discussion with
Rainer I suggested that we might want to use --enable-libstdcxx-time by default
on Solaris because sched_yield is defined in libposix4 and doesn't depend on
libpthread. Additionally, we should note that librt(3LIB) on Solaris says:
"The name libposix4 is maintained for backward compatibility and should be
avoided. librt is the preferred name for this library."