instance method
lock_thread=
Ruby on Rails 7.1.6
Since v5.2.8.1 Last seen in v7.1.6Signature
lock_thread=(lock_thread)
No documentation comment.
Parameters
-
lock_threadreq
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
Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb line 164
· View on GitHub
· Improve this page
· Find usages on GitHub