summaryrefslogtreecommitdiffstats
path: root/9/sources/cxx-stl/llvm-libc++/libcxx/include/thread
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2015-01-13 22:17:02 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-01-13 22:17:03 +0000
commit7714ae663f56992505cee31ddc8203f8c99da5a1 (patch)
tree9bcebab2edecf9266c332587fdd56fac8b3836c0 /9/sources/cxx-stl/llvm-libc++/libcxx/include/thread
parent8226f95d450857358fd08319a906c83739bd5035 (diff)
parent45b1d17d3c24e23b0955928e62881e6fd0f7b8c5 (diff)
downloadprebuilts_ndk-7714ae663f56992505cee31ddc8203f8c99da5a1.zip
prebuilts_ndk-7714ae663f56992505cee31ddc8203f8c99da5a1.tar.gz
prebuilts_ndk-7714ae663f56992505cee31ddc8203f8c99da5a1.tar.bz2
Merge "Update llvm-libc++"
Diffstat (limited to '9/sources/cxx-stl/llvm-libc++/libcxx/include/thread')
-rw-r--r--9/sources/cxx-stl/llvm-libc++/libcxx/include/thread4
1 files changed, 4 insertions, 0 deletions
diff --git a/9/sources/cxx-stl/llvm-libc++/libcxx/include/thread b/9/sources/cxx-stl/llvm-libc++/libcxx/include/thread
index 1f1e4a2..0202440 100644
--- a/9/sources/cxx-stl/llvm-libc++/libcxx/include/thread
+++ b/9/sources/cxx-stl/llvm-libc++/libcxx/include/thread
@@ -106,6 +106,8 @@ void sleep_for(const chrono::duration<Rep, Period>& rel_time);
#define __STDCPP_THREADS__ __cplusplus
+#if !_LIBCPP_SINGLE_THREADED
+
_LIBCPP_BEGIN_NAMESPACE_STD
template <class _Tp>
@@ -455,4 +457,6 @@ void yield() _NOEXCEPT {sched_yield();}
_LIBCPP_END_NAMESPACE_STD
+#endif // !_LIBCPP_SINGLE_THREADED
+
#endif // _LIBCPP_THREAD