[libcxx-commits] [libcxx] 9050d0f - [libcxx] Temporarily switch back to pthread backend for Fuchsia
Petr Hosek via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Jan 16 14:53:17 PST 2020
Author: Petr Hosek
Date: 2020-01-16T14:53:08-08:00
New Revision: 9050d0fb593c60628f47caa122c01ea1dc7a1bf5
URL: https://github.com/llvm/llvm-project/commit/9050d0fb593c60628f47caa122c01ea1dc7a1bf5
DIFF: https://github.com/llvm/llvm-project/commit/9050d0fb593c60628f47caa122c01ea1dc7a1bf5.diff
LOG: [libcxx] Temporarily switch back to pthread backend for Fuchsia
We switched to C11 thread API on Fuchsia in ab9aefe, but further
testing showed that Fuchsia's C11 mutex implementation needs a few
improvements for this to be usable, so we temporarily switch back
to the pthread implementation until those issues are addressed.
Differential Revision: https://reviews.llvm.org/D72862
Added:
Modified:
libcxx/include/__config
Removed:
################################################################################
diff --git a/libcxx/include/__config b/libcxx/include/__config
index d9132d138a5f..84cd46bcc02d 100644
--- a/libcxx/include/__config
+++ b/libcxx/include/__config
@@ -1125,7 +1125,8 @@ _LIBCPP_FUNC_VIS extern "C" void __sanitizer_annotate_contiguous_container(
(defined(__MINGW32__) && __has_include(<pthread.h>))
# define _LIBCPP_HAS_THREAD_API_PTHREAD
# elif defined(__Fuchsia__)
-# define _LIBCPP_HAS_THREAD_API_C11
+ // TODO(44575): Switch to C11 thread API when possible.
+# define _LIBCPP_HAS_THREAD_API_PTHREAD
# elif defined(_LIBCPP_WIN32API)
# define _LIBCPP_HAS_THREAD_API_WIN32
# else
More information about the libcxx-commits
mailing list