PR libstdc++/68519 use native duration to avoid rounding errors
authorJonathan Wakely <jwakely@redhat.com>
Thu, 14 Dec 2017 20:41:52 +0000 (20:41 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 14 Dec 2017 20:41:52 +0000 (20:41 +0000)
commit83fd5e73b3c16296e0d7ba54f6c547e01c7eae7b
tree5d13ba171c0b6c8f2285e1c19c26ab9871b9f590
parentd5f6f04c914e2742aae068bcc4872af694200681
PR libstdc++/68519 use native duration to avoid rounding errors

PR libstdc++/68519
* include/std/condition_variable (condition_variable::wait_for):
Convert duration to native clock's duration before addition.
* testsuite/30_threads/condition_variable/members/68519.cc: New test.

From-SVN: r255665
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/condition_variable
libstdc++-v3/testsuite/30_threads/condition_variable/members/68519.cc [new file with mode: 0644]