gcc/libstdc++-v3/include/std
Mike Crowe 9e68aa3cc5 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.

From-SVN: r263225
2018-08-01 16:39:57 +01:00
..
algorithm
any
array
atomic
bit Minor refactoring in <bit> header 2018-07-24 14:51:50 +01:00
bitset
charconv
chrono Remove <chrono> dependency on _GLIBCXX_USE_C99_STDINT_TR1 2018-07-26 15:01:55 +01:00
codecvt Remove char16_t and char32_t dependency on <stdint.h> 2018-07-26 15:02:01 +01:00
complex
condition_variable Use steady_clock to implement condition_variable::wait_for 2018-08-01 16:39:57 +01:00
deque
filesystem
forward_list
fstream
functional
future Remove <chrono> dependency on _GLIBCXX_USE_C99_STDINT_TR1 2018-07-26 15:01:55 +01:00
iomanip
ios
iosfwd
iostream
istream
iterator
limits
list
locale
map
memory Modify some library internals to work without <stdint.h> 2018-07-26 15:02:05 +01:00
memory_resource Add initial version of C++17 <memory_resource> header 2018-07-24 22:09:55 +01:00
mutex Remove <chrono> dependency on _GLIBCXX_USE_C99_STDINT_TR1 2018-07-26 15:01:55 +01:00
numeric
optional
ostream
queue
random
ratio Remove <chrono> dependency on _GLIBCXX_USE_C99_STDINT_TR1 2018-07-26 15:01:55 +01:00
regex
scoped_allocator
set
shared_mutex Remove <chrono> dependency on _GLIBCXX_USE_C99_STDINT_TR1 2018-07-26 15:01:55 +01:00
sstream
stack
stdexcept
streambuf
string
string_view Remove char16_t and char32_t dependency on <stdint.h> 2018-07-26 15:02:01 +01:00
system_error
thread Remove <chrono> dependency on _GLIBCXX_USE_C99_STDINT_TR1 2018-07-26 15:01:55 +01:00
tuple
type_traits Don't unconditionally define feature test macros in <version> 2018-07-31 23:31:14 +01:00
typeindex
unordered_map
unordered_set
utility
valarray
variant
vector
version Don't unconditionally define feature test macros in <version> 2018-07-31 23:31:14 +01:00