Method: NewRelic::Agent::Stats#marshal_load
- Defined in:
- lib/new_relic/agent/stats.rb
permalink #marshal_load(marshalled_data) ⇒ Object
167 168 169 170 171 172 173 |
# File 'lib/new_relic/agent/stats.rb', line 167 def marshal_load(marshalled_data) marshalled_data.each do |name, value| instance_variable_set(name, value) unless SKIP_MARSHALLING.include?(name) end # since the lock is excluded when marshalling, create a new lock when loading marshalled data @lock = Mutex.new end |