DMD 1.029 and 2.013 releases

Walter Bright newshound1 at digitalmars.com
Fri Apr 25 00:25:42 PDT 2008


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.


More information about the Digitalmars-d-announce mailing list