Non-atomic ops allowed on shared variables?
Andrej Mitrovic
andrej.mitrovich at gmail.com
Sat Dec 3 11:54:38 PST 2011
On 12/3/11, Jonathan M Davis <jmdavisProg at gmx.com> wrote:
> Where in TDPL does it say this?
Page 413.
> Requiring that all operations on a shared
> object be atomic would be highly restrictive.
Yeah sorry, my title was wrong, of course you could use
synchronization instead of atomics. But shared does need to have
guarantees, it should be as useful as, say, const (when it works).
More information about the Digitalmars-d-learn
mailing list