Something needs to happen with shared, and soon.

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Nov 14 06:16:57 PST 2012


On 11/14/12 1:20 AM, Walter Bright wrote:
> On 11/13/2012 11:37 PM, Jacob Carlborg wrote:
>> If the compiler should/does not add memory barriers, then is there a
>> reason for
>> having it built into the language? Can a library solution be enough?
>
> Memory barriers can certainly be added using library functions.

The compiler must understand the semantics of barriers such as e.g. it 
doesn't hoist code above an acquire barrier or below a release barrier.

Andrei




More information about the Digitalmars-d mailing list