About spinlock implementation

qznc via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 1 03:38:07 PDT 2016


On Thursday, 1 September 2016 at 10:30:12 UTC, Guillaume Piolat 
wrote:
> On Thursday, 1 September 2016 at 07:46:04 UTC, qznc wrote:
>>
>> I find the documentation on MemoryOrder lacking about the 
>> semantics of rel. :(
>>
>> [0] https://dlang.org/library/core/atomic/memory_order.html
>
> What helped me was to read std::memory_order documentation
> http://en.cppreference.com/w/cpp/atomic/memory_order

Yes, but how do they map? Is D's rel = relaxed or release or 
acq_rel?

Also, reading C++ documentation should not be required of course. 
;)


More information about the Digitalmars-d-learn mailing list