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