gcc/libstdc++-v3/include/std
Jonathan Wakely 61c71a6245 libstdc++: Define (and use) _GLIBCXX_HAVE_ATOMIC_WAIT
In order to simplify the preprocessor checks for whether __atomic_wait
is available, this commit does:

-#if defined _GLIBCXX_HAS_GTHREADS || _GLIBCXX_HAVE_LINUX_FUTEX
+#ifdef _GLIBCXX_HAVE_ATOMIC_WAIT

The original was wrong anyway, as it should have used 'defined' to check
_GLIBCXX_HAVE_LINUX_FUTEX (for consistency with how that's used
elsewhere).

The new macro is defined in <bits/atomic_wait.h> when the file is
defines __atomic_wait and related facilities. All other code that
depends on those features can just check the one macro.

libstdc++-v3/ChangeLog:

	* include/bits/atomic_wait.h (_GLIBCXX_HAVE_ATOMIC_WAIT):
	Define.
	* include/bits/atomic_base.h: Check _GLIBCXX_HAVE_ATOMIC_WAIT.
	* include/bits/atomic_timed_wait.h: Likewise.
	* include/bits/semaphore_base.h: Likewise.
	* include/std/atomic: Likewise.
	* include/std/latch: Likewise.
	* include/std/semaphore: Likewise.
2020-11-26 23:53:09 +00:00
..
algorithm
any
array libstdc++: Remove <debug/array> 2020-11-09 21:20:01 +01:00
atomic libstdc++: Define (and use) _GLIBCXX_HAVE_ATOMIC_WAIT 2020-11-26 23:53:09 +00:00
bit libstdc++: Remove redundant check for zero in std::__popcount 2020-11-09 14:54:29 +00:00
bitset
charconv
chrono
codecvt
complex
concepts
condition_variable libstdc++: Encapsulate __gthread_cond_t as std::__condvar 2020-11-25 18:24:13 +00:00
coroutine
deque
execution
filesystem
forward_list
fstream
functional libstdc++: Remove <debug/array> 2020-11-09 21:20:01 +01:00
future libstdc++: Move std::thread to a new header 2020-11-19 13:36:15 +00:00
iomanip
ios
iosfwd
iostream
istream
iterator
latch libstdc++: Define (and use) _GLIBCXX_HAVE_ATOMIC_WAIT 2020-11-26 23:53:09 +00:00
limits
list
locale
map
memory
memory_resource
mutex
numbers
numeric
optional libstdc++: Fix constraints on std::optional comparisons [PR 96269] 2020-11-05 19:09:22 +00:00
ostream libstdc++: Implement std::emit_on_flush etc. 2020-11-11 00:19:40 +00:00
queue
random
ranges libstdc++: Fix ranges::join_view::_Iterator::operator-> [LWG 3500] 2020-11-18 10:23:57 -05:00
ratio
regex libstdc++: Remove <memory_resource> dependency from <regex> [PR 92546] 2020-11-20 13:06:48 +00:00
scoped_allocator
semaphore libstdc++: Define (and use) _GLIBCXX_HAVE_ATOMIC_WAIT 2020-11-26 23:53:09 +00:00
set
shared_mutex
span libstdc++: Remove <debug/array> 2020-11-09 21:20:01 +01:00
sstream libstdc++: Reorder constructors in <sstream> 2020-11-10 19:22:48 +00:00
stack
stdexcept
stop_token libstdc++: Add new headers to stdc++.h 2020-11-26 11:25:55 +00:00
streambuf
string
string_view
syncstream libstdc++: Implement std::emit_on_flush etc. 2020-11-11 00:19:40 +00:00
system_error
thread libstdc++: Move std::thread to a new header 2020-11-19 13:36:15 +00:00
tuple
type_traits
typeindex
unordered_map
unordered_set
utility
valarray
variant
vector
version libstdc++: Only define std::latch if atomic waiting is available 2020-11-26 22:36:44 +00:00