summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Lioncash2018-09-18 23:06:24 -0400
committerGravatar Lioncash2018-09-18 23:36:04 -0400
commitab6dfa4fa55266082171f9752abae00bea8db555 (patch)
treebc85927d8e5ede6694d9075fd27a30d580d114e6
parentring_buffer: Use std::hardware_destructive_interference_size to determine ali... (diff)
downloadyuzu-ab6dfa4fa55266082171f9752abae00bea8db555.tar.gz
yuzu-ab6dfa4fa55266082171f9752abae00bea8db555.tar.xz
yuzu-ab6dfa4fa55266082171f9752abae00bea8db555.zip
ring_buffer: Use std::atomic_size_t in a static assert
Avoids the need to repeat "std::" twice
-rw-r--r--src/common/ring_buffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/ring_buffer.h b/src/common/ring_buffer.h
index 0fd5b86f0..abe3b4dc2 100644
--- a/src/common/ring_buffer.h
+++ b/src/common/ring_buffer.h
@@ -30,7 +30,7 @@ class RingBuffer {
30 static_assert(capacity < std::numeric_limits<std::size_t>::max() / 2 / granularity); 30 static_assert(capacity < std::numeric_limits<std::size_t>::max() / 2 / granularity);
31 static_assert((capacity & (capacity - 1)) == 0, "capacity must be a power of two"); 31 static_assert((capacity & (capacity - 1)) == 0, "capacity must be a power of two");
32 // Ensure lock-free. 32 // Ensure lock-free.
33 static_assert(std::atomic<std::size_t>::is_always_lock_free); 33 static_assert(std::atomic_size_t::is_always_lock_free);
34 34
35public: 35public:
36 /// Pushes slots into the ring buffer 36 /// Pushes slots into the ring buffer