libstdc++: Only define std::latch if atomic waiting is available
authorJonathan Wakely <jwakely@redhat.com>
Thu, 26 Nov 2020 21:54:46 +0000 (21:54 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 26 Nov 2020 22:36:44 +0000 (22:36 +0000)
commit71988274865bf049c7705ce33350661b75f0af74
tree0eff933df3be116454f338c4736e401192c92b01
parent1a00786414c7ee2f228562fab5c43491a13284c1
libstdc++: Only define std::latch if atomic waiting is available

libstdc++-v3/ChangeLog:

* include/std/latch: Depend on _GLIBCXX_HAS_GTHREADS and
_GLIBCXX_HAVE_LINUX_FUTEX.
* include/std/version (__cpp_lib_latch): Define conditionally.
libstdc++-v3/include/std/latch
libstdc++-v3/include/std/version