2
0
mirror of https://github.com/boostorg/atomic.git synced 2026-02-02 20:32:09 +00:00

atomic: pad spin-locks to avoid false sharing

[SVN r84386]
This commit is contained in:
Tim Blechmann
2013-05-20 09:07:22 +00:00
parent 18b97cbe7a
commit 8e69b6ffba

View File

@@ -61,6 +61,7 @@ public:
{
private:
atomic_flag& flag_;
uint8_t padding[128 - sizeof(atomic_flag)];
scoped_lock(const scoped_lock &) /* = delete */;
scoped_lock& operator=(const scoped_lock &) /* = delete */;