gcc/libstdc++-v3/testsuite
Jonathan Wakely cfef4c324a PR libstdc++/80538 Only call sleep for non-zero values
Avoid a system call when no sleep is required. Sleep in a loop (actually
two loops) to handle interruption by signals.

	PR libstdc++/80538
	* src/c++11/thread.cc (this_thread::__sleep_for)
	[_GLIBCXX_HAVE_SLEEP]: Only call sleep for non-zero values.
	Loop while sleep call is interrupted and until steady_clock
	shows requested duration has elapsed.
	(!_GLIBCXX_HAVE_USLEEP]: Use the _GLIBCXX_HAVE_SLEEP code path, but
	avoiding the usleep call.
	* testsuite/30_threads/this_thread/60421.cc: Test repeated
	signal interruptions.

From-SVN: r265044
2018-10-11 17:37:23 +01:00
..
17_intro Add <bit> and <version> to freestanding headers 2018-08-13 19:54:34 +01:00
18_support * testsuite/18_support/new_nothrow.cc: XFAIL on AIX. 2018-08-21 10:03:16 -04:00
19_diagnostics Add workaround for non-unique errno values on AIX 2018-08-03 13:53:34 +01:00
20_util PR libstdc++/87538 fix std::not_fn exception specifications 2018-10-08 13:07:22 +01:00
21_strings 10.cc: Add dg-require-fileio. 2018-08-31 15:09:47 -04:00
22_locale PR libstdc++/31413 fix test failure on Debian systems 2018-08-29 11:05:55 +01:00
23_containers PR libstdc++/87544 limit max_size() to PTRDIFF_MAX / sizeof(T) 2018-10-10 16:39:33 +01:00
24_iterators PR libstdc++/86734 make reverse_iterator::operator-> more robust 2018-07-30 18:13:05 +01:00
25_algorithms 10.cc: Add dg-require-fileio. 2018-08-31 15:09:47 -04:00
26_numerics Un-split hypot<long double> tests 2018-09-21 16:36:53 +01:00
27_io 10.cc: Add dg-require-fileio. 2018-08-31 15:09:47 -04:00
28_regex PR libstdc++/87061 remove pmr type aliases for COW strings 2018-08-22 23:54:33 +01:00
29_atomics Add missing dg-require-cstdint directives to tests 2018-07-26 15:03:28 +01:00
30_threads PR libstdc++/80538 Only call sleep for non-zero values 2018-10-11 17:37:23 +01:00
abi
backward
config
data
decimal
experimental PR libstdc++/87538 Verify fix for std::experimental::not_fn 2018-10-08 13:17:58 +01:00
ext Make ext allocators support heterogeneous equality comparison 2018-10-11 12:32:29 +01:00
lib Use -fno-show-column in libstdc++ installed testing. 2018-10-02 13:46:32 +01:00
libstdc++-abi
libstdc++-dg
libstdc++-prettyprinters
libstdc++-xmethods
performance
special_functions
tr1 Add missing dg-require-cstdint directives to tests 2018-07-26 15:03:28 +01:00
tr2
util 2018-09-02 François Dumont <fdumont@gcc.gnu.org> 2018-09-02 10:20:57 +00:00
Makefile.am
Makefile.in PR libstdc++/86450 use -Wabi=2 and simplify -Werror use 2018-07-17 14:18:47 +01:00