method

lock_thread=

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActiveRecord::ConnectionAdapters::ConnectionPool
lock_thread=(lock_thread) public

No documentation

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

Hide source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 164
      def lock_thread=(lock_thread)
        if lock_thread
          @lock_thread = ActiveSupport::IsolatedExecutionState.context
        else
          @lock_thread = nil
        end

        if (active_connection = @thread_cached_conns[connection_cache_key(current_thread)])
          active_connection.lock_thread = @lock_thread
        end
      end
Register or log in to add new notes.