class ActiveRecord::ConnectionAdapters::ConnectionPool::ConnectionLeasingQueue
:nodoc:
leased and there is no need to re-enter synchronized block.@lock
as the main pool) so that a returned connection is already
still in queue’s critical section (queue synchronizes with the same
an internal subclass that also .leases
returned connections while
Connections must be leased while holding the main pool mutex. This is
def internal_poll(timeout)
def internal_poll(timeout) conn = super conn.lease if conn conn end