Loop in std::this_thread sleep functions
authorJonathan Wakely <jwakely@redhat.com>
Wed, 11 Nov 2015 17:08:51 +0000 (17:08 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 11 Nov 2015 17:08:51 +0000 (17:08 +0000)
commitf55e699d3dac1e2764920fa32bee16bfe5313ff2
tree8a635d744d2c9f5e16d9c2d156fd9421a58463f8
parentf83e226207d9458396a3a5cf9a1eb2a0092497bb
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.

From-SVN: r230183
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/thread
libstdc++-v3/src/c++11/thread.cc
libstdc++-v3/testsuite/30_threads/this_thread/60421.cc