Boost logo

Boost :

Subject: Re: [boost] [Review] Lockfree review starts today, July 18th
From: Grund, Holger (Holger.Grund_at_[hidden])
Date: 2011-07-22 02:05:48


> > > in this case one could argue, that you should ensure the padding
> > > manually :)
> >
> > That seems counter-intuitive to me. If you expect users to do so that
> > should probably be spelled out clearly.
>
> well, i think this is not really a common case. if one wants to be
> sure, that there is absolutely no false sharing, one would have to pad
> the whole class to ensure that nothing before and nothing after the
> data structure will be placed in the same cache line. but i think going
> that far is overkill ...
>
Interesting -- I would have expected this to be the common case and the cost of cacheline alignment to be relatively minor for a ringbuffer.

Anyway, I'll see if I can take a closer look.

Thanks!
-hg

--------------------------------------------------------------------------
NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk