Module: NewRelic::LanguageSupport::SynchronizedHash
- Included in:
- Agent::StatsEngine::MetricStats::SynchronizedHash
- Defined in:
- lib/new_relic/language_support.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/new_relic/language_support.rb', line 48 def self.included(base) # need to lock iteration of stats hash in 1.9.x if NewRelic::LanguageSupport.using_version?('1.9') || NewRelic::LanguageSupport.using_engine?('jruby') base.class_eval do def each(*args, &block) @lock.synchronize { super } end end end end |