Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

MonitorMixin#mon_check_owner

() -> nil
mon_check_owner

Ensures that the MonitorMixin is owned by the current thread, otherwise raises an exception.

See also .new #mon_enter #mon_exit also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0