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:
@@ -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 */;
|
||||
|
||||
Reference in New Issue
Block a user