Class: ActiveSupport::Concurrency::ThreadLoadInterlockAwareMonitor
- Includes:
- LoadInterlockAwareMonitorMixin
- Defined in:
- lib/active_support/concurrency/load_interlock_aware_monitor.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize ⇒ ThreadLoadInterlockAwareMonitor
constructor
A new instance of ThreadLoadInterlockAwareMonitor.
Methods included from LoadInterlockAwareMonitorMixin
Constructor Details
#initialize ⇒ ThreadLoadInterlockAwareMonitor
Returns a new instance of ThreadLoadInterlockAwareMonitor.
39 40 41 42 43 |
# File 'lib/active_support/concurrency/load_interlock_aware_monitor.rb', line 39 def initialize @owner = nil @count = 0 @mutex = Mutex.new end |