mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-30 15:18:42 +02:00
Newer MSVC compiler allows alignas
This commit is contained in:
parent
3c657ea05d
commit
7c544ace78
@ -47,20 +47,8 @@ class RingBuffer {
|
||||
*/
|
||||
|
||||
// Align the two atomics to avoid false sharing
|
||||
// TODO MSVC2017: use alignas
|
||||
#ifdef __WXMSW__
|
||||
__declspec(align(64))
|
||||
#else
|
||||
alignas(CacheLine)
|
||||
#endif
|
||||
std::atomic<size_t> mStart { 0 };
|
||||
|
||||
#ifdef __WXMSW__
|
||||
__declspec(align(64))
|
||||
#else
|
||||
alignas(CacheLine)
|
||||
#endif
|
||||
std::atomic<size_t> mEnd{ 0 };
|
||||
alignas(CacheLine) std::atomic<size_t> mStart { 0 };
|
||||
alignas(CacheLine) std::atomic<size_t> mEnd{ 0 };
|
||||
|
||||
const size_t mBufferSize;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user