From 81ae7c06b8543750d8393b22acbe7853d8fcaf7f Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 21 Dec 2021 19:56:32 +0100 Subject: [PATCH] Android libstdc++ is really stupid, it seems. --- client/tracy_SPSCQueue.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/client/tracy_SPSCQueue.h b/client/tracy_SPSCQueue.h index 3831104d..9fe305f1 100644 --- a/client/tracy_SPSCQueue.h +++ b/client/tracy_SPSCQueue.h @@ -25,7 +25,6 @@ SOFTWARE. #include #include #include -#include // std::hardware_destructive_interference_size #include #include // std::enable_if, std::is_*_constructible @@ -113,12 +112,7 @@ public: size_t capacity() const noexcept { return capacity_ - 1; } private: -#ifdef __cpp_lib_hardware_interference_size - static constexpr size_t kCacheLineSize = - std::hardware_destructive_interference_size; -#else static constexpr size_t kCacheLineSize = 64; -#endif // Padding to avoid false sharing between slots_ and adjacent allocations static constexpr size_t kPadding = (kCacheLineSize - 1) / sizeof(T) + 1;