gcc/libstdc++-v3/testsuite/30_threads/future/members
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
..
45133.cc Update copyright years. 2021-01-04 10:26:59 +01:00
93456.cc Update copyright years. 2021-01-04 10:26:59 +01:00
clock_neg.cc Update copyright years. 2021-01-04 10:26:59 +01:00
get2.cc Update copyright years. 2021-01-04 10:26:59 +01:00
get.cc Update copyright years. 2021-01-04 10:26:59 +01:00
poll.cc improve future::poll calibration loop 2021-03-31 15:45:56 -03:00
share.cc Update copyright years. 2021-01-04 10:26:59 +01:00
valid.cc Update copyright years. 2021-01-04 10:26:59 +01:00
wait_for.cc Update copyright years. 2021-01-04 10:26:59 +01:00
wait_until.cc Update copyright years. 2021-01-04 10:26:59 +01:00
wait.cc Update copyright years. 2021-01-04 10:26:59 +01:00