Stabilize ABI of cacheline_protected by hardcoding its alignment to 64

This commit is contained in:
Christian Mazakas
2023-03-17 14:15:10 -07:00
parent b09c5bdcf0
commit ed076facc4

View File

@ -37,22 +37,7 @@ namespace detail{
namespace foa{
template<typename T>
struct
#if defined(__cpp_lib_hardware_interference_size)
#if defined(BOOST_GCC)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Winterference-size"
#endif
alignas(std::hardware_destructive_interference_size)
#if defined(BOOST_GCC)
#pragma GCC diagnostic pop
#endif
#else
alignas(64)
#endif
cacheline_protected:T
struct alignas(64) cacheline_protected:T
{
using T::T;
};