gcc/libstdc++-v3/include
redi d2e378182a Use steady_clock to implement condition_variable::wait_for
The C++ standard says that std::condition_variable::wait_for should be
implemented to be equivalent to:

  return wait_until(lock, chrono::steady_clock::now() + rel_time);

But the existing implementation uses chrono::system_clock. Now that
wait_until has potentially-different behaviour for chrono::steady_clock,
let's at least try to wait using the correct clock.

2018-08-01  Mike Crowe  <mac@mcrowe.com>

	* include/std/condition_variable (wait_for): Use steady_clock.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263225 138bc75d-0d04-0410-961f-82ee72b054a4
2018-08-01 15:39:57 +00:00
..
backward P0935R0 Eradicating unnecessarily explicit default constructors 2018-06-14 14:12:24 +00:00
bits PR libstdc++/86751 default assignment operators for std::pair 2018-07-31 22:31:20 +00:00
c Update copyright years. 2018-01-03 10:03:58 +00:00
c_compatibility Update copyright years. 2018-01-03 10:03:58 +00:00
c_global Remove <chrono> dependency on _GLIBCXX_USE_C99_STDINT_TR1 2018-07-26 14:01:55 +00:00
c_std Update copyright years. 2018-01-03 10:03:58 +00:00
debug 2018-07-06 François Dumont <fdumont@gcc.gnu.org> 2018-07-06 17:02:33 +00:00
decimal Update copyright years. 2018-01-03 10:03:58 +00:00
experimental Remove char16_t and char32_t dependency on <stdint.h> 2018-07-26 14:02:01 +00:00
ext Replace safe bool idiom with explicit operator bool 2018-07-31 14:55:36 +00:00
parallel Update copyright years. 2018-01-03 10:03:58 +00:00
precompiled Add initial version of C++17 <memory_resource> header 2018-07-24 21:09:55 +00:00
profile Update copyright years. 2018-01-03 10:03:58 +00:00
std Use steady_clock to implement condition_variable::wait_for 2018-08-01 15:39:57 +00:00
tr1 2018-05-10 Edward Smith-Rowland <3dw4rd@verizon.net> 2018-05-10 13:59:52 +00:00
tr2 Update copyright years. 2018-01-03 10:03:58 +00:00
Makefile.am Move std::unique_lock definition to a separate header 2018-07-25 10:40:12 +00:00
Makefile.in Move std::unique_lock definition to a separate header 2018-07-25 10:40:12 +00:00