Something needs to happen with shared, and soon.
    deadalnix 
    deadalnix at gmail.com
       
    Wed Nov 14 03:04:16 PST 2012
    
    
  
Le 14/11/2012 10:31, Jacob Carlborg a écrit :
> On 2012-11-14 10:20, Walter Bright wrote:
>
>> Memory barriers can certainly be added using library functions.
>
> Is there then any real advantage of having it directly in the language?
>
The compiler can do more reordering in regard to barriers. For instance, 
the compiler may reorder thread local read write accross the barrier.
This can't be done with a library solution.
    
    
More information about the Digitalmars-d
mailing list