VERY experimental Nintendo Switch 2 emulator
C++
ring_buffer: Use std::atomic_size_t in a static assert
Lioncash939161b4dcd0
diff --git a/src/common/ring_buffer.h b/src/common/ring_buffer.hindex 0fd5b86f03..abe3b4dc2e 100644--- a/src/common/ring_buffer.h+++ b/src/common/ring_buffer.h@@ -30,7 +30,7 @@ class RingBuffer {static_assert(capacity < std::numeric_limits<std::size_t>::max() / 2 / granularity);static_assert((capacity & (capacity - 1)) == 0, "capacity must be a power of two");// Ensure lock-free.- static_assert(std::atomic<std::size_t>::is_always_lock_free);+ static_assert(std::atomic_size_t::is_always_lock_free);public:/// Pushes slots into the ring buffer