tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: __read_mostly and __mp_friendly annotations
Matt Fleming <matt%console-pimps.org@localhost> wrote:
> >
> > Right, or just __cacheline, since it provides not only alignment.
>
> What else does it provide? The name should reflect what it does, that
> is, align the data object on a cachline boundary.
Grouping, which in essence means that objects gets its own cacheline(s).
This is what user wants. While aligning, together with grouping, is just
a way to achieve that.
P.S. Does the very last object (both of __read_mostly and __cacheline
areas) gets enough padded space?
--
Mindaugas
Home |
Main Index |
Thread Index |
Old Index