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