Method: NewRelic::Agent::StatsEngine#with_stats_lock
- Defined in:
- lib/new_relic/agent/stats_engine.rb
permalink #with_stats_lock ⇒ Object
All access to the @stats_hash ivar should be funnelled through this method to ensure thread-safety.
23 24 25 |
# File 'lib/new_relic/agent/stats_engine.rb', line 23 def with_stats_lock @stats_lock.synchronize { yield } end |