method
lock_thread=
v7.2.3 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::AbstractAdapter
lock_thread=(lock_thread)public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/abstract_adapter.rb, line 185
def lock_thread=(lock_thread) # :nodoc:
@lock =
case lock_thread
when Thread
ActiveSupport::Concurrency::ThreadLoadInterlockAwareMonitor.new
when Fiber
ActiveSupport::Concurrency::LoadInterlockAwareMonitor.new
else
ActiveSupport::Concurrency::NullLock
end
end