gcc/libstdc++-v3
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
..
config Add initial version of C++17 <memory_resource> header 2018-07-24 21:09:55 +00:00
doc Improve libstdc++ docs w.r.t newer C++ standards 2018-07-31 15:02:32 +00:00
include Use steady_clock to implement condition_variable::wait_for 2018-08-01 15:39:57 +00:00
libsupc++ Don't unconditionally define feature test macros in <version> 2018-07-31 22:31:14 +00:00
po PR libstdc++/86450 use -Wabi=2 and simplify -Werror use 2018-07-17 13:18:47 +00:00
python PR libstdc++/86751 default assignment operators for std::pair 2018-07-31 22:31:20 +00:00
scripts * scripts/create_testsuite_files: Fix typo in comment. 2018-07-16 17:42:20 +00:00
src PR libstdc++/60555 std::system_category() should recognise POSIX errno values 2018-08-01 13:57:05 +00:00
testsuite Report early wakeup of condition_variable::wait_until as no_timeout 2018-08-01 15:39:45 +00:00
ChangeLog Use steady_clock to implement condition_variable::wait_for 2018-08-01 15:39:57 +00:00
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015 Update copyright years. 2016-01-04 14:30:50 +00:00
ChangeLog-2016 Update copyright years. 2017-01-01 12:07:43 +00:00
ChangeLog-2017 Update copyright years. 2018-01-03 10:03:58 +00:00
Makefile.am Update copyright years. 2018-01-03 10:03:58 +00:00
Makefile.in PR libstdc++/86450 use -Wabi=2 and simplify -Werror use 2018-07-17 13:18:47 +00:00
README
acinclude.m4 Add new src/c++17 directory to list in acinclude.m4 2018-07-25 11:01:39 +00:00
aclocal.m4 Build libgo with -Wa,-nH if possible (PR go/78978) [non-libgo parts] 2017-01-06 14:33:47 +00:00
config.h.in Fix bootstrap failure for bare metal due to autoconf link tests 2018-06-18 16:01:24 +00:00
configure Add initial version of C++17 <memory_resource> header 2018-07-24 21:09:55 +00:00
configure.ac PR libstdc++/86450 use -Wabi=2 and simplify -Werror use 2018-07-17 13:18:47 +00:00
configure.host Separate Solaris/SPARC and x86 baselines 2017-02-02 16:24:03 +00:00
crossconfig.m4 2018-06-18 Maya Rashish <coypu@sdf.org> 2018-06-18 17:28:53 +00:00
fragment.am PR libstdc++/86450 use -Wabi=2 and simplify -Werror use 2018-07-17 13:18:47 +00:00
linkage.m4

README

file: libstdc++-v3/README

New users may wish to point their web browsers to the file
index.html in the 'doc/html' subdirectory.  It contains brief
building instructions and notes on how to configure the library in
interesting ways.