output/wasapi: use std::hardware_destructive_interference_size

This commit is contained in:
Max Kellermann 2023-01-23 13:28:21 +01:00
parent debac0dfd4
commit 5728c514d1
1 changed files with 2 additions and 2 deletions

View File

@ -187,9 +187,9 @@ class WasapiOutputThread {
enum class Status : uint32_t { FINISH, PLAY, PAUSE };
alignas(BOOST_LOCKFREE_CACHELINE_BYTES) std::atomic<Status> status =
alignas(std::hardware_destructive_interference_size) std::atomic<Status> status =
Status::PAUSE;
alignas(BOOST_LOCKFREE_CACHELINE_BYTES) struct {
alignas(std::hardware_destructive_interference_size) struct {
std::atomic_bool occur = false;
std::exception_ptr ptr = nullptr;
} error;