summaryrefslogtreecommitdiffstats
path: root/libcxx/include/thread
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2019-12-10 18:00:42 -0500
committerLouis Dionne <ldionne@apple.com>2019-12-10 19:19:45 -0500
commitdd37e24ae62329d8376b7989dc2e3a53be30622a (patch)
treee03a7e7f0078658b5ba69c2879292f12c7089107 /libcxx/include/thread
parent2fb07b90dc1c2c08fe6fc69c9d569a1fc2c8a8e1 (diff)
downloadbcm5719-llvm-dd37e24ae62329d8376b7989dc2e3a53be30622a.tar.gz
bcm5719-llvm-dd37e24ae62329d8376b7989dc2e3a53be30622a.zip
[libc++] Hide some functions and types in <future> and <thread> as hidden
Otherwise, weak symbols leak into user programs when using `async` with non-internal types.
Diffstat (limited to 'libcxx/include/thread')
-rw-r--r--libcxx/include/thread1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/include/thread b/libcxx/include/thread
index 02da703c3cc..3b55342288d 100644
--- a/libcxx/include/thread
+++ b/libcxx/include/thread
@@ -274,6 +274,7 @@ __thread_execute(tuple<_TSp, _Fp, _Args...>& __t, __tuple_indices<_Indices...>)
}
template <class _Fp>
+_LIBCPP_INLINE_VISIBILITY
void* __thread_proxy(void* __vp)
{
// _Fp = std::tuple< unique_ptr<__thread_struct>, Functor, Args...>
OpenPOWER on IntegriCloud