class Concurrent::MutexAtomicFixnum

def increment

Returns:
  • (Fixnum) - the current value after incrementation
def increment
  @mutex.lock
  @value += 1
  result = @value
  @mutex.unlock
  result
end