8000 [DOC] Monitor · github/ruby@2acbf45 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2acbf45

Browse files
committed
[DOC] Monitor
1 parent 871124c commit 2acbf45

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/monitor/lib/monitor.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ def mon_initialize
238238
@mon_data_owner_object_id = self.object_id
239239
end
240240

241+
# Ensures that the MonitorMixin is owned by the current thread,
242+
# otherwise raises an exception.
241243
def mon_check_owner
242244
@mon_data.mon_check_owner
243245
end

0 commit comments

Comments
 (0)
0