January 28, 2015 Issue with atomics… | ||||
---|---|---|---|---|
| ||||
Attachments:
| I have a piece of code:
synchronized(sumMutex) { sum += localSum; }
Ugly, I know. LDC tells me (deprecation warning) to replace it with:
atomicOp!"+="(sum, localSum);
Sadly this code fails to work. It is an LDC thing as the code works fine with DMD. Is this a bug I should be reporting, or is it something already known?
--
Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:russel.winder@ekiga.net 41 Buckmaster Road m: +44 7770 465 077 xmpp: russel@winder.org.uk London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
|
Copyright © 1999-2021 by the D Language Foundation