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.
1 parent 8fa5b95 commit 7e1dc82Copy full SHA for 7e1dc82
lib/concurrent-ruby/concurrent/thread_safe/util/data_structures.rb
@@ -42,7 +42,7 @@ def self.make_synchronized_on_rbx(klass)
42
private
43
44
def _mon_initialize
45
- @_monitor = Monitor.new unless @_monitor # avoid double initialisation
+ @_monitor ||= Monitor.new # avoid double initialisation
46
end
47
48
def self.new(*args)
0 commit comments