Fixing core.atomic

Max Haughton maxhaton at gmail.com
Mon May 31 20:01:57 UTC 2021


On Monday, 31 May 2021 at 17:51:26 UTC, IGotD- wrote:
> On Monday, 31 May 2021 at 16:34:35 UTC, Guillaume Piolat wrote:
>>
>> I prefer atomicLoad and atomicStore then, because it's 
>> explicit and it's useless to hide the fact it's atomic behind 
>> nice syntax.
>
> Yes, you can use it if you want to. We will not remove the 
> regular D atomic functions.

That and the C++ `std::atomic` will provide the same semantics on 
types of wide size (LDC and GDC seem to differ in behaviour here 
when you use the atomic primitive functions.)


More information about the Digitalmars-d mailing list