On 12/25/2011 09:25 AM, Adrian Mercieca wrote: > Hi folks, > > Is there a GetAndSet function (corresponding to cas (compare and set) > function) in D? > > Thanks. core.atomic.cas http://dlang.org/phobos/core_atomic.html#cas -- Mike Wey