Is this atomic code correct?

BCS none at anon.com
Wed Mar 18 23:16:16 PDT 2009


Hello Sean,

> min() doesn't perform atomic operations (in fact, it probably just
> takes the parameters by value) so it isn't guaranteed to refetch the
> values.
> 

Hmmm. I wonder how that mixes with it being a delegate. I guess inlining 
and whatnot would make a difference. Ug.




More information about the Digitalmars-d-learn mailing list