diff options
author | Lioncash <mathew1800@gmail.com> | 2018-09-19 05:06:24 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-09-19 05:36:04 +0200 |
commit | ab6dfa4fa55266082171f9752abae00bea8db555 (patch) | |
tree | bc85927d8e5ede6694d9075fd27a30d580d114e6 /src/common | |
parent | ring_buffer: Use std::hardware_destructive_interference_size to determine alignment size for avoiding false sharing (diff) | |
download | yuzu-ab6dfa4fa55266082171f9752abae00bea8db555.tar yuzu-ab6dfa4fa55266082171f9752abae00bea8db555.tar.gz yuzu-ab6dfa4fa55266082171f9752abae00bea8db555.tar.bz2 yuzu-ab6dfa4fa55266082171f9752abae00bea8db555.tar.lz yuzu-ab6dfa4fa55266082171f9752abae00bea8db555.tar.xz yuzu-ab6dfa4fa55266082171f9752abae00bea8db555.tar.zst yuzu-ab6dfa4fa55266082171f9752abae00bea8db555.zip |
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/ring_buffer.h | 2 |
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 { 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 |