gcc/libstdc++-v3
Alexandre Oliva eadf009b22 improve future::poll calibration loop
The calibration loop I've recently added to the libstdc++
future/members/poll.cc tests could still select iteration counts that
might yield zero-time measurements for the wait_for when ready loop.

Waiting for a future that has already had a value set is presumably
uniformly faster than a zero-timed wait for a result, so I've changed
the calibration loop to use the former.

We might still be unlucky and get nonzero from the initial loop, so
that the calibration is skipped altogether, but then get zero from the
later when-ready loop.  I'm not dealing with this case in this patch.


for  libstdc++-v3/ChangeLog

	* testsuite/30_threads/future/members/poll.cc: Use faster
	after-ready call in the calibration loop.
2021-03-31 15:45:56 -03:00
..
config libstdc++: Remove symbols for new std::call_once implementation [PR 99341] 2021-03-16 12:25:28 +00:00
doc libstdc++: Adjust link to PSTL upstream (again) 2021-03-29 14:14:00 +01:00
include libstdc++: _GLIBCXX_DEBUG Fix allocator-extended move constructor 2021-03-28 22:06:33 +02:00
libsupc++ libstdc++: Declare malloc for freestanding 2021-03-25 18:25:40 +00:00
po
python libstdc++: Fix find_type helper to work consistently 2021-03-11 17:52:56 +00:00
scripts
src libstdc++: Add PRNG fallback to std::random_device 2021-03-26 19:12:12 +00:00
testsuite improve future::poll calibration loop 2021-03-31 15:45:56 -03:00
acinclude.m4
aclocal.m4
ChangeLog Daily bump. 2021-03-30 00:16:29 +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
ChangeLog-2016
ChangeLog-2017
ChangeLog-2018
ChangeLog-2019
ChangeLog-2020
config.h.in
configure
configure.ac
configure.host
crossconfig.m4
fragment.am
linkage.m4
Makefile.am
Makefile.in
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.