diff options
Diffstat (limited to 'contrib/llvm-project/libcxx/include/__threading_support')
| -rw-r--r-- | contrib/llvm-project/libcxx/include/__threading_support | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/contrib/llvm-project/libcxx/include/__threading_support b/contrib/llvm-project/libcxx/include/__threading_support index fcc2ed39a143..3af1a778ecf7 100644 --- a/contrib/llvm-project/libcxx/include/__threading_support +++ b/contrib/llvm-project/libcxx/include/__threading_support @@ -14,7 +14,8 @@ #include <__chrono/convert_to_timespec.h> #include <__chrono/duration.h> #include <__config> -#include <__thread/poll_with_backoff.h> +#include <__fwd/hash.h> +#include <ctime> #include <errno.h> #ifdef __MVS__ @@ -47,7 +48,7 @@ #if defined(_LIBCPP_HAS_THREAD_API_WIN32) #define _LIBCPP_THREAD_ABI_VISIBILITY _LIBCPP_EXPORTED_FROM_ABI #else -#define _LIBCPP_THREAD_ABI_VISIBILITY inline _LIBCPP_INLINE_VISIBILITY +#define _LIBCPP_THREAD_ABI_VISIBILITY inline _LIBCPP_HIDE_FROM_ABI #endif typedef ::timespec __libcpp_timespec_t; @@ -101,7 +102,7 @@ typedef cnd_t __libcpp_condvar_t; #define _LIBCPP_CONDVAR_INITIALIZER {} // Execute once -typedef once_flag __libcpp_exec_once_flag; +typedef ::once_flag __libcpp_exec_once_flag; #define _LIBCPP_EXEC_ONCE_INITIALIZER ONCE_FLAG_INIT // Thread id @@ -403,7 +404,7 @@ void __libcpp_thread_yield() void __libcpp_thread_sleep_for(const chrono::nanoseconds& __ns) { - __libcpp_timespec_t __ts = _VSTD::__convert_to_timespec<__libcpp_timespec_t>(__ns); + __libcpp_timespec_t __ts = std::__convert_to_timespec<__libcpp_timespec_t>(__ns); while (nanosleep(&__ts, &__ts) == -1 && errno == EINTR); } @@ -560,7 +561,7 @@ void __libcpp_thread_yield() void __libcpp_thread_sleep_for(const chrono::nanoseconds& __ns) { - __libcpp_timespec_t __ts = _VSTD::__convert_to_timespec<__libcpp_timespec_t>(__ns); + __libcpp_timespec_t __ts = std::__convert_to_timespec<__libcpp_timespec_t>(__ns); thrd_sleep(&__ts, nullptr); } |
