diff options
author | Eric Fiselier <eric@efcs.ca> | 2017-01-06 20:05:40 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2017-01-06 20:05:40 +0000 |
commit | 00f6beaed46e86463fb88319845947c45e1dfac3 (patch) | |
tree | fd9d2fd628adbc46c2f3ef702e55f829b6aefd32 /libcxx/test/support/external_threads.cpp | |
parent | 08519d7b021d6a6d28dad54e0224123c2c4099a6 (diff) | |
download | bcm5719-llvm-00f6beaed46e86463fb88319845947c45e1dfac3.tar.gz bcm5719-llvm-00f6beaed46e86463fb88319845947c45e1dfac3.zip |
[libc++] Cleanup and document <__threading_support>
Summary:
This patch attempts to clean up the macro configuration mess in `<__threading_support>`, specifically the mess involving external threading variants. Additionally this patch adds design documentation for `<__threading_support>` and the configuration macros it uses.
The primary change in this patch is separating the idea of an "external API" provided by `<__external_threading>` and the idea of having an external threading library. Now `_LIBCPP_HAS_THREAD_API_EXTERNAL` means that libc++ should use `<__external_threading>` and that the header is expected to exist. Additionally the new macro `_LIBCPP_HAS_THREAD_LIBRARY_EXTERNAL` is now used to configure for using an "external library" with the default threading API.
Reviewers: compnerd, rmaprath
Subscribers: smeenai, cfe-commits, mgorny
Differential Revision: https://reviews.llvm.org/D28316
llvm-svn: 291275
Diffstat (limited to 'libcxx/test/support/external_threads.cpp')
-rw-r--r-- | libcxx/test/support/external_threads.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/support/external_threads.cpp b/libcxx/test/support/external_threads.cpp index 68ba96ff879..019ab473aa1 100644 --- a/libcxx/test/support/external_threads.cpp +++ b/libcxx/test/support/external_threads.cpp @@ -6,5 +6,5 @@ // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// -#define _LIBCPP_BUILDING_THREAD_API_EXTERNAL_PTHREAD +#define _LIBCPP_BUILDING_THREAD_LIBRARY_EXTERNAL #include <__threading_support> |