DMD 1.029 and 2.013 releases
Sean Kelly
sean at invisibleduck.org
Fri Apr 25 17:17:44 PDT 2008
== Quote from Walter Bright (newshound1 at digitalmars.com)'s article
> 0ffh wrote:
> > Just out of curiosity, which approach would you recommend to ensure
> > that a variable which is updated from an interrupt service routine
> > (and, implicitly, any other thread) will be read from common memory
> > and not cached in a register?
> > I know there are a few, but which would you recommend?
> > I think ensuring that memory access happens at every variable access
> > is a straightforward solution (and a good one, if access is atomar).
> I suggest wrapping it in a mutex.
I suppose the obvious question here is: what if I want to create a mutex
in D?
Sean
More information about the Digitalmars-d-announce
mailing list