[libc++] Remove <atomic> includes from <stop_token> (#201710)
This commit is contained in:
parent
0db5d27170
commit
bb088f7e1a
7 changed files with 17 additions and 7 deletions
|
|
@ -10,9 +10,10 @@
|
|||
#ifndef _LIBCPP___STOP_TOKEN_ATOMIC_UNIQUE_LOCK_H
|
||||
#define _LIBCPP___STOP_TOKEN_ATOMIC_UNIQUE_LOCK_H
|
||||
|
||||
#include <__atomic/atomic.h>
|
||||
#include <__atomic/memory_order.h>
|
||||
#include <__bit/has_single_bit.h>
|
||||
#include <__config>
|
||||
#include <atomic>
|
||||
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
# pragma GCC system_header
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@
|
|||
#ifndef _LIBCPP___STOP_TOKEN_INTRUSIVE_SHARED_PTR_H
|
||||
#define _LIBCPP___STOP_TOKEN_INTRUSIVE_SHARED_PTR_H
|
||||
|
||||
#include <__atomic/atomic.h>
|
||||
#include <__atomic/memory_order.h>
|
||||
#include <__config>
|
||||
#include <__cstddef/nullptr_t.h>
|
||||
|
|
|
|||
|
|
@ -11,11 +11,12 @@
|
|||
#define _LIBCPP___STOP_TOKEN_STOP_STATE_H
|
||||
|
||||
#include <__assert>
|
||||
#include <__atomic/atomic.h>
|
||||
#include <__atomic/memory_order.h>
|
||||
#include <__config>
|
||||
#include <__stop_token/atomic_unique_lock.h>
|
||||
#include <__stop_token/intrusive_list_view.h>
|
||||
#include <__thread/id.h>
|
||||
#include <atomic>
|
||||
#include <cstdint>
|
||||
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
|
|
|
|||
|
|
@ -350,8 +350,11 @@ _LIBCPP_END_NAMESPACE_STD
|
|||
|
||||
_LIBCPP_POP_MACROS
|
||||
|
||||
# if defined(_LIBCPP_KEEP_TRANSITIVE_INCLUDES_LLVM23) && _LIBCPP_STD_VER <= 20
|
||||
# if defined(_LIBCPP_KEEP_TRANSITIVE_INCLUDES_LLVM23) && _LIBCPP_STD_VER <= 23
|
||||
# include <atomic>
|
||||
# endif
|
||||
|
||||
# if defined(_LIBCPP_KEEP_TRANSITIVE_INCLUDES_LLVM23) && _LIBCPP_STD_VER <= 20
|
||||
# include <concepts>
|
||||
# include <cstdint>
|
||||
# include <cstdlib>
|
||||
|
|
|
|||
|
|
@ -52,6 +52,10 @@ namespace std {
|
|||
|
||||
# endif // _LIBCPP_HAS_THREADS
|
||||
|
||||
# if defined(_LIBCPP_KEEP_TRANSITIVE_INCLUDES_LLVM23) && _LIBCPP_STD_VER <= 23
|
||||
# include <atomic>
|
||||
# endif
|
||||
|
||||
# if defined(_LIBCPP_KEEP_TRANSITIVE_INCLUDES_LLVM23) && _LIBCPP_STD_VER <= 20
|
||||
# include <cstddef>
|
||||
# include <iosfwd>
|
||||
|
|
|
|||
|
|
@ -128,6 +128,11 @@ void sleep_for(const chrono::duration<Rep, Period>& rel_time);
|
|||
# include <system_error>
|
||||
# include <type_traits>
|
||||
# endif
|
||||
|
||||
# if defined(_LIBCPP_KEEP_TRANSITIVE_INCLUDES_LLVM23) && _LIBCPP_STD_VER <= 23
|
||||
# include <atomic>
|
||||
# endif
|
||||
|
||||
#endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
|
||||
|
||||
#endif // _LIBCPP_THREAD
|
||||
|
|
|
|||
|
|
@ -180,7 +180,6 @@ complex tuple
|
|||
complex typeinfo
|
||||
complex version
|
||||
concepts version
|
||||
condition_variable atomic
|
||||
condition_variable cerrno
|
||||
condition_variable climits
|
||||
condition_variable cstdint
|
||||
|
|
@ -876,7 +875,6 @@ stack limits
|
|||
stack stdexcept
|
||||
stack tuple
|
||||
stack version
|
||||
stop_token atomic
|
||||
stop_token climits
|
||||
stop_token cstdint
|
||||
stop_token cstring
|
||||
|
|
@ -1009,7 +1007,6 @@ system_error string_view
|
|||
system_error tuple
|
||||
system_error version
|
||||
thread array
|
||||
thread atomic
|
||||
thread bitset
|
||||
thread cctype
|
||||
thread cerrno
|
||||
|
|
|
|||
|
Loading…
Reference in a new issue