summaryrefslogtreecommitdiffhomepage
path: root/video-ps3eye
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-02-27 18:45:55 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-02-28 14:43:38 +0100
commit5a0f22d281d78094552867d1b64d64f4d9600ca0 (patch)
tree3421774300c89497c57c0509982e8c42b3fe775e /video-ps3eye
parent74e0c63150df8b61170348bee353034ac38f26a6 (diff)
video/ps3eye: simplify false sharing protection code
Diffstat (limited to 'video-ps3eye')
-rw-r--r--video-ps3eye/shm-layout.hpp6
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;
};