[cpp-threads] High-level vs. low-level

Alexander Terekhov alexander.terekhov at gmail.com
Thu Jul 13 20:30:02 BST 2006


On 7/13/06, Lawrence Crowl <lawrence.crowl at gmail.com> wrote:
[...]
> As an aside, I mentioned to Hans that perhaps the low-level operations
> should act on system-defined structures rather than basic types.  this
> approach can deal with additional alignment constraints easily and
> avoids inappropriately accessing an atomic variable with regular
> operations.  The disadvantage is that a single variable cannot change
> its atomicity over its lifetime.

atomic<> could provide full set of labels including ones for
noncompeting/exclusive accesses.

regards,
alexander.



More information about the cpp-threads mailing list