Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
MonitorMixin#mon_owned?
() -> bool
mon_owned?
ext/monitor/lib/monitor.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/ext/monitor/lib/monitor.rb, line 191
def mon_owned?
@mon_data.mon_owned?
end
Returns true if this monitor is locked by current thread.
See also
#mon_locked?
#mon_synchronize
#mon_initialize
#mon_try_enter
also in
4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0