method

mon_try_enter

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: ThreadLoadInterlockAwareMonitor
mon_try_enter() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.