This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/52680] std::this_thread::sleep_for #ifdef'd out by _GLIBCXX_USE_NANOSLEEP


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]