Methods
- done_running
- done_unloading
- loading
- permit_concurrent_loads
- running
- start_running
- start_unloading
- unloading
Instance Public methods
done_running()
Source:
# File activesupport/lib/active_support/dependencies/interlock.rb, line 36
def done_running
@lock.stop_sharing
end
done_unloading()
Source:
# File activesupport/lib/active_support/dependencies/interlock.rb, line 28
def done_unloading
@lock.stop_exclusive(compatible: [:load, :unload])
end
loading()
Source:
# File activesupport/lib/active_support/dependencies/interlock.rb, line 12
def loading
@lock.exclusive(purpose: :load, compatible: [:load], after_compatible: [:load]) do
yield
end
end
permit_concurrent_loads()
Source:
# File activesupport/lib/active_support/dependencies/interlock.rb, line 46
def permit_concurrent_loads
@lock.yield_shares(compatible: [:load]) do
yield
end
end
running()
Source:
# File activesupport/lib/active_support/dependencies/interlock.rb, line 40
def running
@lock.sharing do
yield
end
end
start_running()
Source:
# File activesupport/lib/active_support/dependencies/interlock.rb, line 32
def start_running
@lock.start_sharing
end