Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84386 - trunk/boost/atomic/detail
From: tim_at_[hidden]
Date: 2013-05-20 05:07:24


Author: timblechmann
Date: 2013-05-20 05:07:22 EDT (Mon, 20 May 2013)
New Revision: 84386
URL: http://svn.boost.org/trac/boost/changeset/84386

Log:
atomic: pad spin-locks to avoid false sharing
Text files modified:
   trunk/boost/atomic/detail/lockpool.hpp | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: trunk/boost/atomic/detail/lockpool.hpp
==============================================================================
--- trunk/boost/atomic/detail/lockpool.hpp (original)
+++ trunk/boost/atomic/detail/lockpool.hpp 2013-05-20 05:07:22 EDT (Mon, 20 May 2013)
@@ -61,6 +61,7 @@
     {
     private:
         atomic_flag& flag_;
+ uint8_t padding[128 - sizeof(atomic_flag)];
 
         scoped_lock(const scoped_lock &) /* = delete */;
         scoped_lock& operator=(const scoped_lock &) /* = delete */;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk