diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-27 18:45:55 +0100 | 
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-28 14:43:38 +0100 | 
| commit | 5a0f22d281d78094552867d1b64d64f4d9600ca0 (patch) | |
| tree | 3421774300c89497c57c0509982e8c42b3fe775e | |
| parent | 74e0c63150df8b61170348bee353034ac38f26a6 (diff) | |
video/ps3eye: simplify false sharing protection code
| -rw-r--r-- | video-ps3eye/shm-layout.hpp | 6 | 
1 files changed, 1 insertions, 5 deletions
| diff --git a/video-ps3eye/shm-layout.hpp b/video-ps3eye/shm-layout.hpp index 9eee6db4..0b6c132e 100644 --- a/video-ps3eye/shm-layout.hpp +++ b/video-ps3eye/shm-layout.hpp @@ -31,12 +31,8 @@ struct shm_out  };  struct shm { -    static constexpr unsigned _cacheline_len = 64; -    static constexpr unsigned _padding_len = -        (_cacheline_len - (sizeof(shm_in) & (_cacheline_len - 1))) & (_cacheline_len - 1); -      shm_out out; -    const char* _padding[_padding_len]; +    [[maybe_unused]] const char _padding[128 - sizeof(shm_out) % 128]; // NOLINT      shm_in in;  }; | 
