Something needs to happen with shared, and soon.

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Nov 13 15:38:33 PST 2012


On 11/13/12 3:28 PM, Alex Rønne Petersen wrote:
> On 13-11-2012 23:33, Andrei Alexandrescu wrote:
>> shared int x;
>> ...
>> x = 4;
>>
>> You'll need to use x.store(4) instead.
>
> Is that meant to be an atomic store, or just a regular, but explicit,
> store?

Atomic and sequentially consistent.


Andrei


More information about the Digitalmars-d mailing list