core.stdc.stdatomic
Walter Bright
newshound2 at digitalmars.com
Tue Nov 14 08:24:59 UTC 2023
On 11/13/2023 8:56 PM, Richard (Rikki) Andrew Cattermole wrote:
> For the most part it looks like everything is in core.atomic already.
>
> The only thing that looks like it isn't is ``atomic_signal_fence`` and that has
> to be an intrinsic as it is specifically for a backend instruction.
>
> But reminder: only dmd is missing the intrinsics necessary to do atomics
> correctly without memory errors. Dmd is a right off if you are doing anything
> more than just reference counting with it.
Aside from fence, they can all be done with simple functions. So why not?
More information about the Digitalmars-d
mailing list