how to stop a variable from being optimized out

Rory via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Feb 24 04:50:53 PST 2015


On Tuesday, 24 February 2015 at 06:48:26 UTC, ketmar wrote:
> but why do you need this? just use `atomicLoad` to get shared 
> variable
> value, it will do the right caching.

Nice! Thanks. Tested atomicLoad and it is slightly faster for my 
non blocking queue.



More information about the Digitalmars-d-learn mailing list