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;