method
lock_thread=
v8.1.1 -
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 194
def lock_thread=(lock_thread) # :nodoc:
@lock =
case lock_thread
when Thread
ActiveSupport::Concurrency::ThreadMonitor.new
when Fiber
::Monitor.new
else
ActiveSupport::Concurrency::NullLock
end
end