Sha256: 133b997da2addc735c1fd605c925e5ed2d2089a8651e4e844d1373169ebe1ff6
Contents?: true
Size: 560 Bytes
Versions: 5
Compression:
Stored size: 560 Bytes
Contents
module Scrooge module Core module Thread # Scrooge Resource tracker scoped to the current Thread for threadsafety in # multi-threaded environments. def scrooge_resource current[:scrooge_resource] ||= Scrooge::Tracker::Resource.new end def scrooge_resource=( resource ) current[:scrooge_resource] = resource end def reset_scrooge_resource! current[:scrooge_resource] = nil end end end end class Thread extend Scrooge::Core::Thread end
Version data entries
5 entries across 5 versions & 1 rubygems