method

mon_exit

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_exit()
private

No documentation available.

# File activesupport/lib/active_support/concurrency/thread_monitor.rb, line 43
        def mon_exit
          unless @owner == Thread.current
            raise ThreadError, "current thread not owner"
          end

          @count -= 1
          return unless @count == 0
          @owner = nil
          @mutex.unlock
        end