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 237f0bb commit 7b472feCopy full SHA for 7b472fe
lib/mri/monitor.rb
@@ -227,7 +227,7 @@ def initialize(*args)
227
# Initializes the MonitorMixin after being included in a class or when an
228
# object has been extended with the MonitorMixin
229
def mon_initialize
230
- if defined?(@mon_mutex) && Primitive.object_same_or_equal(@mon_mutex_owner_object, self)
+ if defined?(@mon_mutex) && Primitive.object_equal(@mon_mutex_owner_object, self)
231
raise ThreadError, 'already initialized'
232
end
233
@mon_mutex = Thread::Mutex.new
0 commit comments