On Tuesday, 12 August 2014 at 15:06:38 UTC, ketmar via Digitalmars-d-learn wrote:

besides, using atomic operations will allow you to drop synchronize altogether which makes your code slightly faster.

... and potentially quite broken. At the very least, if this value is ready anywhere you'll have to use an atomicLoad there in place of the synchronized block you would have used.

Reply via email to