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