We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents beab992 + 2f59478 commit faa76aeCopy full SHA for faa76ae
lib/concurrent/atomic/atomic_fixnum.rb
@@ -81,7 +81,7 @@ def increment
81
#
82
# @return [Fixnum] the current value after decrementation
83
def decrement
84
- synchronize { ns_set(@value -1) }
+ synchronize { ns_set(@value - 1) }
85
end
86
87
alias_method :down, :decrement
lib/concurrent/atomic/read_write_lock.rb
@@ -192,7 +192,7 @@ def acquire_write_lock
192
193
# @return [Boolean] true if the lock is successfully released
194
def release_write_lock
195
- c = @Counter.update { |c| c-RUNNING_WRITER }
+ c = @Counter.update { |counter| counter-RUNNING_WRITER }
196
@ReadLock.broadcast
197
@WriteLock.signal if waiting_writers(c) > 0
198
true
0 commit comments