forked from OSchip/llvm-project
92832e4889
std::atomic is, for the most part, just a thin veneer on top of compiler builtins. Hence, it should be available even when threads are not available on the system, and in fact there has been requests for such support. This patch: - Moves __libcpp_thread_poll_with_backoff to its own header so it can be used in <atomic> when threads are disabled. - Adds a dummy backoff policy for atomic polling that doesn't know about threads. - Adjusts the <atomic> feature-test macros so they are provided even when threads are disabled. - Runs the <atomic> tests when threads are disabled. rdar://77873569 Differential Revision: https://reviews.llvm.org/D114109 |
||
---|---|---|
.. | ||
ci | ||
gdb/libcxx | ||
google-benchmark | ||
libcxx | ||
symcheck-blacklists | ||
CMakeLists.txt | ||
cat_files.py | ||
generate_abi_list.py | ||
generate_feature_test_macro_components.py | ||
generate_header_inclusion_tests.py | ||
generate_header_tests.py | ||
generate_private_header_tests.py | ||
graph_header_deps.py | ||
merge_archives.py | ||
run.py | ||
ssh.py | ||
sym_diff.py |