lib/l2meter/thread_safe.rb in l2meter-0.2.2 vs lib/l2meter/thread_safe.rb in l2meter-0.2.3

- old
+ new

@@ -1,4 +1,6 @@ +require "forwardable" + module L2meter # This class is a wrapper around Emitter that makes sure that we have a # completely separate clone of Emitter per thread running. It doesn't truly # make Emitter thread-safe, it makes sure that you don't access the same # instance of emitter from different threads.