Fixing core.atomic

rm rymrg at memail.com
Sun May 30 21:03:38 UTC 2021


On 30/05/2021 23:49, Johan Engelen wrote:
> On Sunday, 30 May 2021 at 20:41:29 UTC, rm wrote:
>> I plan on making core.atomic more consistent and easier to use. Please 
>> provide me with your feedback.
>>
>>
>> https://github.com/rymrg/drm/blob/main/atomic.d
>> https://github.com/rymrg/drm/blob/main/atomic_rationale.md
> 
> I would also make the template accept more than just integral types, and 
> only add the increment/binop functions for integral types.

The plan is to support pointers as this will be really useful for lock 
free data structures.
Currently `isPointer` is defined  in `core.internal.traits`. So I 
haven't written this usage.


More information about the Digitalmars-d mailing list