Something needs to happen with shared, and soon.
David Nadlinger
see at klickverbot.at
Wed Nov 14 09:35:06 PST 2012
On Wednesday, 14 November 2012 at 13:19:12 UTC, deadalnix wrote:
> The main drawback with that solution is that the compiler can't
> optimize thread local read/write regardless of shared
> read/write. This is wasted opportunity.
You mean moving non-atomic loads/stores across atomic
instructions? This is simply a matter of the compiler providing
the right intrinsics for implementing the core.atomic functions.
LDC already does it.
David
More information about the Digitalmars-d
mailing list