DMD 1.029 and 2.013 releases
Walter Bright
newshound1 at digitalmars.com
Sat Apr 26 22:07:15 PDT 2008
Lars Ivar Igesund wrote:
> So you are saying that you're removing (or not going to implement) a feature
> due to a restriction in the DM optimizer?
"volatile" doesn't work in other C++ compilers for multithreaded code.
It's a huge screwup. Not only do the optimizers move things about, but
the CPU inself reorders things in ways that move things past mutexes,
even if the compiler gets it right. Again, see Scott Meyer's doubled
checked locking example.
There'll be a way to do lock-free programming. Volatile isn't the right way.
More information about the Digitalmars-d-announce
mailing list