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.

Reply via email to