Deprecation: Read-modify-write operations are not allowed for shared variables

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Aug 12 09:08:47 PDT 2014


On Tue, 12 Aug 2014 16:02:01 +0000
Sean Kelly via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com>
wrote:

> ... and potentially quite broken.  At the very least, if this 
> value is ready anywhere you'll have to use an atomicLoad there in 
> place of the synchronized block you would have used.
sure, *any* access to shared variables should be done with atomic ops.
i thought that this is obvious. ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20140812/de5f83ad/attachment.sig>


More information about the Digitalmars-d-learn mailing list