Module: Mongo::ThreadLocalVariableManager
- Included in:
- MongoReplicaSetClient, MongoShardedClient, Pool, PoolManager
- Defined in:
- lib/mongo/util/thread_local_variable_manager.rb
Instance Method Summary collapse
Instance Method Details
#thread_local ⇒ Object
22 23 24 25 26 27 |
# File 'lib/mongo/util/thread_local_variable_manager.rb', line 22 def thread_local Thread.current[:mongo_thread_locals] ||= Hash.new do |hash, key| hash[key] = Hash.new unless hash.key? key hash[key] end end |