[Vm-dev] Cross platform atomicity of #ifNil:

Ben Coman btc at openInWorld.com
Fri Aug 8 03:43:49 UTC 2014


I am looking at dealing with multiple in-image threads and am wondering 
about what operations are atomic.  The current understanding is that...
    (myvar == nil) ifTrue: [ myvar := 1.  myvar2 := #something ]
is atomic, but I see some indication in comments (sorry lost my 
reference) that...
    myvar ifNil: [ myvar:=1 ]
might not be - but maybe those comments were historical. What is the 
current status and likely future guarantees for Squeak/Pharo/Cuis/other? 

cheers -ben


More information about the Vm-dev mailing list