summaryrefslogtreecommitdiffstats
path: root/9/sources/cxx-stl/llvm-libc++/libcxx/include/thread
diff options
context:
space:
mode:
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