[Bug c++/52680] std::this_thread::sleep_for #ifdef'd out by _GLIBCXX_USE_NANOSLEEP
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Mar 31 16:19:00 GMT 2012
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."
More information about the Gcc-bugs
mailing list