method

mon_try_enter

rails latest stable - Class: ActiveSupport::Concurrency::ThreadMonitor

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

mon_try_enter()
private

No documentation available.

# File activesupport/lib/active_support/concurrency/thread_monitor.rb, line 29
        def mon_try_enter
          if @owner != Thread.current
            return false unless @mutex.try_lock
            @owner = Thread.current
          end
          @count += 1
        end