method
mon_try_enter
v7.2.3 -
Show latest stable
- Class:
ActiveSupport::Concurrency::ThreadLoadInterlockAwareMonitor
mon_try_enter()private
No documentation available.
# File activesupport/lib/active_support/concurrency/load_interlock_aware_monitor.rb, line 46
def mon_try_enter
if @owner != Thread.current
return false unless @mutex.try_lock
@owner = Thread.current
end
@count += 1
end