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 Implement P0558R2 changes to std::atomic 2018-05-24 16:28:26 +01:00
bit Minor refactoring in <bit> header 2018-07-24 14:51:50 +01:00
bitset Define special members as defaulted 2018-06-08 17:43:14 +01:00
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 Define special members as defaulted 2018-06-08 17:43:14 +01:00
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 PR libstdc++/86008 add std::quoted support for string_view 2018-06-06 07:05:07 +01:00
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 LWG 2975 ensure construct(pair<T,U>*, ...) used to construct pairs 2018-06-18 21:17:44 +01:00
set
shared_mutex Remove <chrono> dependency on _GLIBCXX_USE_C99_STDINT_TR1 2018-07-26 15:01:55 +01:00
sstream P0935R0 Eradicating unnecessarily explicit default constructors 2018-07-06 13:39:02 +01:00
stack
stdexcept PR libstdc++/85831 define move constructors and operators for exceptions 2018-07-05 22:29:51 +01:00
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 Partially revert move of std::tuple_element_t to <tuple> 2018-06-14 20:02:40 +01:00
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 Remove unused <exception> header from <utility> 2018-06-19 18:19:16 +01:00
valarray LWG 3074 make scalar types non-deduced in valarray non-member functions 2018-06-14 20:36:54 +01:00
variant * include/std/variant (__accepted_index): Use void_t. 2018-07-06 11:20:38 +01:00
vector
version Don't unconditionally define feature test macros in <version> 2018-07-31 23:31:14 +01:00