Closed paneq closed 12 years ago
http://www.engineyard.com/blog/2011/concurrency-in-jruby/
This is not thread safe:
module M2R class << self attr_writer :zmq_context def zmq_context(threads = 1) @zmq_context ||= ZMQ::Context.new(threads) end end end
We should probably wrap it in Thread.exclusive
Thread.exclusive
http://www.engineyard.com/blog/2011/concurrency-in-jruby/
This is not thread safe:
We should probably wrap it in
Thread.exclusive