instance method
MonitorMixin#mon_try_enter
() -> bool
mon_try_enter
ext/monitor/lib/monitor.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/ext/monitor/lib/monitor.rb, line 160
def mon_try_enter
@mon_data.try_enter
end
Attempts to enter exclusive section. Returns false if lock fails.
See also
#mon_synchronize
#new_cond
#mon_owned?
#synchronize
also in
4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0