ActiveSupport::Dependencies::Interlock Ruby on Rails 5.1.2 Class ActiveSupport::Dependencies::Interlock < Object activesupport/lib/active_support/dependencies/interlock.rb Methods D done_running, done_unloading L loading P permit_concurrent_loads R running S start_running, start_unloading U unloading Instance Public methods done_running() Link Source: show | on GitHub # File activesupport/lib/active_support/dependencies/interlock.rb, line 34 def done_running @lock.stop_sharing end done_unloading() Link Source: show | on GitHub # File activesupport/lib/active_support/dependencies/interlock.rb, line 26 def done_unloading @lock.stop_exclusive(compatible: [:load, :unload]) end loading() Link Source: show | on GitHub # File activesupport/lib/active_support/dependencies/interlock.rb, line 10 def loading @lock.exclusive(purpose: :load, compatible: [:load], after_compatible: [:load]) do yield end end permit_concurrent_loads() Link Source: show | on GitHub # File activesupport/lib/active_support/dependencies/interlock.rb, line 44 def permit_concurrent_loads @lock.yield_shares(compatible: [:load]) do yield end end running() Link Source: show | on GitHub # File activesupport/lib/active_support/dependencies/interlock.rb, line 38 def running @lock.sharing do yield end end start_running() Link Source: show | on GitHub # File activesupport/lib/active_support/dependencies/interlock.rb, line 30 def start_running @lock.start_sharing end start_unloading() Link Source: show | on GitHub # File activesupport/lib/active_support/dependencies/interlock.rb, line 22 def start_unloading @lock.start_exclusive(purpose: :unload, compatible: [:load, :unload]) end unloading() Link Source: show | on GitHub # File activesupport/lib/active_support/dependencies/interlock.rb, line 16 def unloading @lock.exclusive(purpose: :unload, compatible: [:load, :unload], after_compatible: [:load, :unload]) do yield end end