Method: NewRelic::Agent::StatsEngine#with_stats_lock

Defined in:
lib/new_relic/agent/stats_engine.rb

#with_stats_lockObject

All access to the @stats_hash ivar should be funnelled through this method to ensure thread-safety.

[View source]

23
24
25
# File 'lib/new_relic/agent/stats_engine.rb', line 23

def with_stats_lock
  @stats_lock.synchronize { yield }
end