Michael Van Canneyt wrote: >> >> Does the Codegenerator already support this? >> Are they portable? >> How would you suggest to implement such operations platform independent? > > I don't think this is possible, as it depends on processor support ? I think it can be implemented easily using InterlockedCompareExchange, no?