About spinlock implementation

mogu via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 1 01:36:40 PDT 2016


On Thursday, 1 September 2016 at 07:46:04 UTC, qznc wrote:
>
> This effectively makes the access to the protected value 
> unprotected and nullifies the effect of the spinlock.
>

So the cas operation implicit an MemoryOrder.acq? Does it make 
any other MemoryOrder guarantee?


More information about the Digitalmars-d-learn mailing list