https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60421
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Wed Nov 11 17:08:51 2015 New Revision: 230183 URL: https://gcc.gnu.org/viewcvs?rev=230183&root=gcc&view=rev Log: Loop in std::this_thread sleep functions PR libstdc++/60421 * include/std/thread (this_thread::sleep_for): Retry on EINTR. (this_thread::sleep_until): Retry if time not reached. * src/c++11/thread.cc (__sleep_for): Retry on EINTR. * testsuite/30_threads/this_thread/60421.cc: Test interruption and non-steady clocks. Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/std/thread trunk/libstdc++-v3/src/c++11/thread.cc trunk/libstdc++-v3/testsuite/30_threads/this_thread/60421.cc