class Concurrent::MutexAtomicFixnum

def initialize(init = 0)

Raises:
  • (ArgumentError) - if the initial value is not a `Fixnum`

Parameters:
  • init (Fixnum) -- the initial value
def initialize(init = 0)
  raise ArgumentError.new('initial value must be a Fixnum') unless init.is_a?(Fixnum)
  @value = init
  @mutex = Mutex.new
end