core.stdc.stdatomic

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Wed Nov 15 06:59:45 UTC 2023


On 15/11/2023 7:33 PM, Walter Bright wrote:
> I do not understand why a function that consists of a FENCE instruction 
> will be a failure compared to a FENCE instruction inlined.

Yes, ideally a memory barrier wouldn't matter for how it is executed.

But it does matter for load/cas. Because what was true when the 
operation executed may not be true any longer by the time the next 
operation is performed with deep calls in use.


More information about the Digitalmars-d mailing list