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: Fri, 23 Mar 2012 12:45:48 +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
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-03-23 12:45:48 UTC ---
Don't define that manually, you should configure gcc with
--enable-libstdccxx-time instead.
We need to revisit the configure tests for nanosleep and sched_yield, as they
are always available on some platforms, so we might be able to make
--enable-libstdcxx-time the default, or make the configure checks more
finegrained.