|
|
@ -21,11 +21,6 @@ constexpr size_t hardware_interference_size = std::hardware_destructive_interfer
|
|
|
|
constexpr size_t hardware_interference_size = 64;
|
|
|
|
constexpr size_t hardware_interference_size = 64;
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
|
|
|
|
#pragma warning(push)
|
|
|
|
|
|
|
|
#pragma warning(disable : 4324)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template <typename T, size_t capacity = 0x400>
|
|
|
|
template <typename T, size_t capacity = 0x400>
|
|
|
|
class MPSCQueue {
|
|
|
|
class MPSCQueue {
|
|
|
|
public:
|
|
|
|
public:
|
|
|
@ -160,8 +155,4 @@ private:
|
|
|
|
static_assert(std::is_nothrow_destructible_v<T>, "T must be nothrow destructible");
|
|
|
|
static_assert(std::is_nothrow_destructible_v<T>, "T must be nothrow destructible");
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
|
|
|
|
#pragma warning(pop)
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace Common
|
|
|
|
} // namespace Common
|
|
|
|