Class: ActiveSupport::Concurrency::ThreadLoadInterlockAwareMonitor

Inherits:
Object
  • Object
show all
Includes:
LoadInterlockAwareMonitorMixin
Defined in:
lib/active_support/concurrency/load_interlock_aware_monitor.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods included from LoadInterlockAwareMonitorMixin

#synchronize

Constructor Details

#initializeThreadLoadInterlockAwareMonitor

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