class Concurrent::MutexAtomicFixnum

def compare_and_set(expect, update)

@!macro atomic_fixnum_method_compare_and_set
def compare_and_set(expect, update)
  synchronize do
    if @value == expect.to_i
      @value = update.to_i
      true
    else
      false
    end
  end
end