Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
MonitorMixin#mon_locked?
() -> bool
mon_locked?
lib/monitor.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/monitor.rb, line 130
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.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0