class Concurrent::MutexAtomicFixnum

def decrement

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