method
lock_thread=
v7.1.3.4 -
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 183
def lock_thread=(lock_thread) # :nodoc:
@lock =
case lock_thread
when Thread
THREAD_LOCK
when Fiber
FIBER_LOCK
else
ActiveSupport::Concurrency::NullLock
end
end