aboutsummaryrefslogtreecommitdiff
path: root/libcxx/src/mutex_destructor.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2024-01-30 08:35:15 -0500
committerGitHub <noreply@github.com>2024-01-30 08:35:15 -0500
commit7162fd750ee5f786f3b9b7a7b26b72ee36ce772e (patch)
tree785cfd80bdb7a32597f69ef8971cbd559bb43055 /libcxx/src/mutex_destructor.cpp
parentf89d707e5f5e531fb854f70e02d9eaa32aaf19bd (diff)
downloadllvm-7162fd750ee5f786f3b9b7a7b26b72ee36ce772e.zip
llvm-7162fd750ee5f786f3b9b7a7b26b72ee36ce772e.tar.gz
llvm-7162fd750ee5f786f3b9b7a7b26b72ee36ce772e.tar.bz2
[libc++] Split the monolithic __threading_support header (#79654)
The <__threading_support> header is a huge beast and it's really difficult to navigate. I find myself struggling to find what I want every time I have to open it, and I've been considering splitting it up for years for that reason. This patch aims not to contain any functional change. The various implementations of the threading base are simply moved to separate headers and then the individual headers are simplified in mechanical ways. For example, we used to have redundant declarations of all the functions at the top of `__threading_support`, and those are removed since they are not needed anymore. The various #ifdefs are also simplified and removed when they become unnecessary. Finally, this patch adds documentation for the API we expect from any threading implementation.
Diffstat (limited to 'libcxx/src/mutex_destructor.cpp')
-rw-r--r--libcxx/src/mutex_destructor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/src/mutex_destructor.cpp b/libcxx/src/mutex_destructor.cpp
index d5ac257..a6ceaaa 100644
--- a/libcxx/src/mutex_destructor.cpp
+++ b/libcxx/src/mutex_destructor.cpp
@@ -17,7 +17,7 @@
// _LIBCPP_BUILDING_LIBRARY to change the definition in the headers.
#include <__config>
-#include <__threading_support>
+#include <__thread/support.h>
#if _LIBCPP_ABI_VERSION == 1 || !defined(_LIBCPP_HAS_TRIVIAL_MUTEX_DESTRUCTION)
# define NEEDS_MUTEX_DESTRUCTOR