diff options
author | Martin Storsjo <martin@martin.st> | 2018-01-05 20:48:29 +0000 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2018-01-05 20:48:29 +0000 |
commit | bf02a09103347f7b56309864aaf5a5c294b1af9f (patch) | |
tree | 5a694c15515fa4dbfa191e188ceac666cfd4464f /libcxx/docs/DesignDocs | |
parent | f9d01a12d182dbc35ee96c48deb9512d2f2cd49e (diff) | |
download | bcm5719-llvm-bf02a09103347f7b56309864aaf5a5c294b1af9f.tar.gz bcm5719-llvm-bf02a09103347f7b56309864aaf5a5c294b1af9f.zip |
[cmake] Add a config option LIBCXX_HAS_WIN32_THREAD_API for enforcing win32 threads
This allows keeping libcxx using win32 threads even if a
version of pthread.h is installed.
This matches the existing cmake option LIBCXX_HAS_PTHREAD_API.
Also add missing documentation about the internal define
_LIBCPP_HAS_THREAD_API_WIN32.
Differential Revision: https://reviews.llvm.org/D41764
llvm-svn: 321896
Diffstat (limited to 'libcxx/docs/DesignDocs')
-rw-r--r-- | libcxx/docs/DesignDocs/ThreadingSupportAPI.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/docs/DesignDocs/ThreadingSupportAPI.rst b/libcxx/docs/DesignDocs/ThreadingSupportAPI.rst index 556c45b7e1f..330ce74cf77 100644 --- a/libcxx/docs/DesignDocs/ThreadingSupportAPI.rst +++ b/libcxx/docs/DesignDocs/ThreadingSupportAPI.rst @@ -66,6 +66,10 @@ Threading Configuration Macros This macro is defined when libc++ should use POSIX threads to implement the internal threading API. +**_LIBCPP_HAS_THREAD_API_WIN32** + This macro is defined when libc++ should use Win32 threads to implement the + internal threading API. + **_LIBCPP_HAS_THREAD_LIBRARY_EXTERNAL** This macro is defined when libc++ expects the definitions of the internal threading API to be provided by an external library. When defined |