]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR libstdc++/58038 (std::this_thread::sleep_until can cause inifinite sleep)
authorJonathan Wakely <jwakely@redhat.com>
Sat, 11 Apr 2015 11:47:09 +0000 (12:47 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Sat, 11 Apr 2015 11:47:09 +0000 (12:47 +0100)
commite3e510b4b2fa6eb9fcea5325c52a5df80034fd62
tree0fa6660b5c92f6f26478ab094ff267d012fb6dc1
parent036e97174ee16ffede1d71946485e422dc6d3921
re PR libstdc++/58038 (std::this_thread::sleep_until can cause inifinite sleep)

PR libstdc++/58038
* 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: r222003
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]