class Concurrent::MutexAtomicReference
def get_and_set(new_value)
def get_and_set(new_value) synchronize do old_value = @value @value = new_value old_value end end
def get_and_set(new_value) synchronize do old_value = @value @value = new_value old_value end end