gcc/libstdc++-v3/include
Jonathan Wakely f5d9bc8ae8 libstdc++: Only include <condition_variable> in <shared_mutex> if needed
The <condition_variable> header is not small, so <shared_mutex> should
not include it unless it actually needs std::condition_variable, which
is only the case when we don't have pthread_rwlock_t and the POSIX
Timers option.

The <shared_mutex> header would be even smaller if we had a header for
std::condition_variable (separate from std::condition_variable_any).
That's already planned for a future change.

And <memory_resource> would be even smaller if it was possible to get
std::shared_mutex without std::shared_timed_mutex (which depends on
<chrono>). For that to be effective, the synchronized_pool_resource
would have to create its own simpler version of std::shared_lock without
the timed waiting functions. I have no plans to do that.

libstdc++-v3/ChangeLog:

	* include/std/shared_mutex: Only include <condition_variable>
	when pthread_rwlock_t and POSIX timers are not available.
	(__cpp_lib_shared_mutex, __cpp_lib_shared_timed_mutex): Change
	value to be type 'long'.
	* include/std/version (__cpp_lib_shared_mutex)
	(__cpp_lib_shared_timed_mutex): Likewise.
2020-10-22 18:49:38 +01:00
..
backward
bits libstdc++: Reduce header dependencies in and on <memory> 2020-10-22 18:42:03 +01:00
c
c_compatibility
c_global
c_std
debug libstdc++: Replace use of reserved name that clashes [PR 97362] 2020-10-10 21:22:12 +01:00
decimal
experimental libstdc++: Introduce new headers for C++20 ranges components 2020-09-22 15:45:54 +01:00
ext libstdc++: Make allocators throw bad_array_new_length on overflow [LWG 3190] 2020-10-05 15:18:56 +01:00
parallel
precompiled libstdc++: Remove unused header 2020-10-19 11:19:28 +01:00
pstl libstdc++: Rebase include/pstl to current upstream 2020-10-21 06:11:28 -07:00
std libstdc++: Only include <condition_variable> in <shared_mutex> if needed 2020-10-22 18:49:38 +01:00
tr1
tr2
Makefile.am libstdc++: Reduce header dependencies in and on <memory> 2020-10-22 18:42:03 +01:00
Makefile.in libstdc++: Reduce header dependencies in and on <memory> 2020-10-22 18:42:03 +01:00