Hi,
Not sure if there are any concurrency enthusiasts here but I'll give it a shot :)
Would it be possible to make a lock-free, thread safe structure that would essentially
retain "boolean compareAndSet(long expect,long update)" semantics but instead of
returning boolean would return delta between actual underlying value and update value?
Delta of zero would therefore mean that value has been set.
Vladimir