class Concurrent::MutexAtomicReference
def _compare_and_set(old_value, new_value)
def _compare_and_set(old_value, new_value) synchronize do if @value.equal? old_value @value = new_value true else false end end end
def _compare_and_set(old_value, new_value) synchronize do if @value.equal? old_value @value = new_value true else false end end end