End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
MonitorMixin#new_cond
new_cond
ext/monitor/lib/monitor.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/ext/monitor/lib/monitor.rb, line 210
def new_cond
unless defined?(@mon_data)
mon_initialize
@mon_initialized_by_new_cond = true
end
return ConditionVariable.new(@mon_data)
end
Creates a new MonitorMixin::ConditionVariable associated with the Monitor object.
See also
#mon_try_enter
#synchronize
#mon_synchronize
#try_mon_enter
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1