gcc/libstdc++-v3/testsuite
redi 79a8b4c1d7 Report early wakeup of condition_variable::wait_until as no_timeout
As currently implemented, condition_variable always ultimately waits
against std::chrono::system_clock. This clock can be changed in arbitrary
ways by the user which may result in us waking up too early or too late
when measured against the caller-supplied clock.

We can't (yet) do much about waking up too late (PR 41861), but
if we wake up too early we must return cv_status::no_timeout to indicate a
spurious wakeup rather than incorrectly returning cv_status::timeout.

2018-08-01  Mike Crowe  <mac@mcrowe.com>

	* include/std/condition_variable (wait_until): Only report timeout
	if we really have timed out when measured against the
	caller-supplied clock.
	* testsuite/30_threads/condition_variable/members/2.cc: Add test
	case to confirm above behaviour.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263224 138bc75d-0d04-0410-961f-82ee72b054a4
2018-08-01 15:39:45 +00:00
..
17_intro P0754R2 <version> header 2018-06-18 16:42:11 +00:00
18_support Add workaround for aligned_alloc bug on AIX 2018-07-30 17:12:44 +00:00
19_diagnostics PR libstdc++/60555 std::system_category() should recognise POSIX errno values 2018-08-01 13:57:05 +00:00
20_util PR libstdc++/86751 default assignment operators for std::pair 2018-07-31 22:31:20 +00:00
21_strings Remove dg-require-cstdint directive from tests 2018-07-26 14:02:26 +00:00
22_locale Remove dg-require-cstdint directive from tests 2018-07-26 14:02:26 +00:00
23_containers Add missing dg-require-cstdint directives to tests 2018-07-26 14:03:28 +00:00
24_iterators PR libstdc++/86734 make reverse_iterator::operator-> more robust 2018-07-30 17:13:05 +00:00
25_algorithms Add missing dg-require-cstdint directives to tests 2018-07-26 14:03:28 +00:00
26_numerics Add missing dg-require-cstdint directives to tests 2018-07-26 14:03:28 +00:00
27_io P0935R0 Eradicating unnecessarily explicit default constructors 2018-07-06 12:39:02 +00:00
28_regex Optimize std::sub_match comparisons using string_view-like type 2018-07-02 20:31:11 +00:00
29_atomics Add missing dg-require-cstdint directives to tests 2018-07-26 14:03:28 +00:00
30_threads Report early wakeup of condition_variable::wait_until as no_timeout 2018-08-01 15:39:45 +00:00
abi Update copyright years. 2018-01-03 10:03:58 +00:00
backward Remove duplicate function call in test 2018-05-02 16:27:01 +00:00
config Update copyright years. 2018-01-03 10:03:58 +00:00
data
decimal Update copyright years. 2018-01-03 10:03:58 +00:00
experimental Add missing dg-require-cstdint directives to tests 2018-07-26 14:03:28 +00:00
ext Add missing dg-require-cstdint directives to tests 2018-07-26 14:03:28 +00:00
lib Define "random_device" effective target 2018-07-04 16:56:21 +00:00
libstdc++-abi Update copyright years. 2018-01-03 10:03:58 +00:00
libstdc++-dg Update copyright years. 2018-01-03 10:03:58 +00:00
libstdc++-prettyprinters 2018-03-08 François Dumont <fdumont@gcc.gnu.org> 2018-03-08 06:26:15 +00:00
libstdc++-xmethods Update copyright years. 2018-01-03 10:03:58 +00:00
performance Update copyright years. 2018-01-03 10:03:58 +00:00
special_functions 2018-05-10 Edward Smith-Rowland <3dw4rd@verizon.net> 2018-05-10 13:59:52 +00:00
tr1 Add missing dg-require-cstdint directives to tests 2018-07-26 14:03:28 +00:00
tr2 Update copyright years. 2018-01-03 10:03:58 +00:00
util Add initial version of C++17 <memory_resource> header 2018-07-24 21:09:55 +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