lib/rainbows/coolio_thread_spawn.rb in rainbows-2.1.0 vs lib/rainbows/coolio_thread_spawn.rb in rainbows-3.0.0
- old
+ new
@@ -13,15 +13,15 @@
#
# This concurrency model is designed for Ruby 1.9, and Ruby 1.8
# users are NOT advised to use this due to high CPU usage.
module Rainbows::CoolioThreadSpawn
include Rainbows::Coolio::Core
+ autoload :Client, 'rainbows/coolio_thread_spawn/client'
def init_worker_process(worker) # :nodoc:
super
master = Rainbows::Coolio::Master.new(Queue.new)
master.attach(Coolio::Loop.default)
Client.const_set(:MASTER, master)
end
end
# :enddoc:
-require 'rainbows/coolio_thread_spawn/client'