diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2021-02-16 20:13:02 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2021-02-16 20:13:02 +0000 |
| commit | b60736ec1405bb0a8dd40989f67ef4c93da068ab (patch) | |
| tree | 5c43fbb7c9fc45f0f87e0e6795a86267dbd12f9d /libcxx/include/latch | |
| parent | cfca06d7963fa0909f90483b42a6d7d194d01e08 (diff) | |
Diffstat (limited to 'libcxx/include/latch')
| -rw-r--r-- | libcxx/include/latch | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libcxx/include/latch b/libcxx/include/latch index f669f5860d34..a894f8cafd1c 100644 --- a/libcxx/include/latch +++ b/libcxx/include/latch @@ -19,6 +19,8 @@ namespace std class latch { public: + static constexpr ptrdiff_t max() noexcept; + constexpr explicit latch(ptrdiff_t __expected); ~latch(); @@ -39,6 +41,7 @@ namespace std */ #include <__config> +#include <__availability> #include <atomic> #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) @@ -49,6 +52,9 @@ namespace std # error <latch> is not supported on this single threaded system #endif +_LIBCPP_PUSH_MACROS +#include <__undef_macros> + #if _LIBCPP_STD_VER >= 14 _LIBCPP_BEGIN_NAMESPACE_STD @@ -101,4 +107,6 @@ _LIBCPP_END_NAMESPACE_STD #endif // _LIBCPP_STD_VER >= 14 +_LIBCPP_POP_MACROS + #endif //_LIBCPP_LATCH |
