[concurrency-interest] Primitives wrappers and visibilityproblems

Chris Purcell chris.purcell.39 at gmail.com
Wed Aug 23 07:56:40 EDT 2006


> 1) mem = allocmem(MyInt)
> 2) mem.value = 10
> 3) globalfield = mem

If 2 is properly ensconced in a constructor, and 3 is executed  
outside of the constructor, the language guarantees that 2 happens- 
before 3, even if globalfield is not volatile.

Chris



More information about the Concurrency-interest mailing list