mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-22 16:25:45 +01:00
ring_buffer: Use std::atomic_size_t in a static assert
Avoids the need to repeat "std::" twice
This commit is contained in:
parent
c51f8563a6
commit
ab6dfa4fa5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user