diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-03-01 14:07:11 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-03-01 14:07:11 +0300 |
commit | 2ec7758a9f5564266f5736c249c02d15d8316246 (patch) | |
tree | 5fa4cc3fb88d1a1aca0cb65d7e0eb0c710f358ce /contrib/libs/cxxsupp/libcxx/src/memory.cpp | |
parent | 6e8c5376d75151b514477715c1b9505d017b83eb (diff) | |
download | ydb-2ec7758a9f5564266f5736c249c02d15d8316246.tar.gz |
intermediate changes
ref:ca7f4ea59c35451f4846b211a4122df6ab12b4df
Diffstat (limited to 'contrib/libs/cxxsupp/libcxx/src/memory.cpp')
-rw-r--r-- | contrib/libs/cxxsupp/libcxx/src/memory.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/src/memory.cpp b/contrib/libs/cxxsupp/libcxx/src/memory.cpp index 29b3c1da76..78082e18d0 100644 --- a/contrib/libs/cxxsupp/libcxx/src/memory.cpp +++ b/contrib/libs/cxxsupp/libcxx/src/memory.cpp @@ -1,4 +1,4 @@ -//===------------------------ memory.cpp ----------------------------------===// +//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -8,11 +8,11 @@ #include "memory" #ifndef _LIBCPP_HAS_NO_THREADS -#include "mutex" -#include "thread" -#if defined(__ELF__) && defined(_LIBCPP_LINK_PTHREAD_LIB) -#pragma comment(lib, "pthread") -#endif +# include "mutex" +# include "thread" +# if defined(__ELF__) && defined(_LIBCPP_LINK_PTHREAD_LIB) +# pragma comment(lib, "pthread") +# endif #endif #if !defined(_LIBCPP_HAS_NO_THREADS) #include <atomic> @@ -162,7 +162,7 @@ __shared_weak_count::__get_deleter(const type_info&) const noexcept return nullptr; } -#if !defined(_LIBCPP_HAS_NO_ATOMIC_HEADER) +#if !defined(_LIBCPP_HAS_NO_THREADS) _LIBCPP_SAFE_STATIC static const std::size_t __sp_mut_count = 16; _LIBCPP_SAFE_STATIC static __libcpp_mutex_t mut_back[__sp_mut_count] = @@ -213,7 +213,7 @@ __get_sp_mut(const void* p) return muts[hash<const void*>()(p) & (__sp_mut_count-1)]; } -#endif // !defined(_LIBCPP_HAS_NO_ATOMIC_HEADER) +#endif // !defined(_LIBCPP_HAS_NO_THREADS) void* align(size_t alignment, size_t size, void*& ptr, size_t& space) |