re PR libstdc++/58038 (std::this_thread::sleep_until can cause inifinite sleep)
authorJonathan Wakely <jwakely@redhat.com>
Thu, 26 Mar 2015 19:59:08 +0000 (19:59 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 26 Mar 2015 19:59:08 +0000 (19:59 +0000)
commitd1a74a287ee1a84b90e5675904dac7f945cffca1
tree4b13770b22c24a7b55883559fe1eea9898165a50
parent1f4eb0e985e71a20e5778963cf98e591054dd51b
re PR libstdc++/58038 (std::this_thread::sleep_until can cause inifinite sleep)

PR libstdc++/58038
PR libstdc++/60421
* include/std/thread (this_thread::sleep_for): Check for negative
durations.
(this_thread::sleep_until): Check for times in the past.
* testsuite/30_threads/this_thread/58038.cc: New.
* testsuite/30_threads/this_thread/60421.cc: New.

From-SVN: r221708
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/thread
libstdc++-v3/testsuite/30_threads/this_thread/58038.cc [new file with mode: 0644]
libstdc++-v3/testsuite/30_threads/this_thread/60421.cc [new file with mode: 0644]