Class: ActiveRecord::ConnectionAdapters::ConnectionPool::LeaseRegistry
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb |
Class Method Summary
- .new ⇒ LeaseRegistry constructor
Instance Method Summary
Constructor Details
.new ⇒ LeaseRegistry
# File 'activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb', line 168
def initialize @mutex = Mutex.new @map = WeakThreadKeyMap.new end
Instance Method Details
#[](context)
[ GitHub ]#clear
[ GitHub ]# File 'activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb', line 179
def clear @mutex.synchronize do @map.clear end end