diff options
Diffstat (limited to 'lib/rainbows/rev_thread_spawn.rb')
-rw-r--r-- | lib/rainbows/rev_thread_spawn.rb | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/rainbows/rev_thread_spawn.rb b/lib/rainbows/rev_thread_spawn.rb index f19b68f..09036f2 100644 --- a/lib/rainbows/rev_thread_spawn.rb +++ b/lib/rainbows/rev_thread_spawn.rb @@ -1,4 +1,5 @@ # -*- encoding: binary -*- +Rainbows.const_set(:RevThreadSpawn, Rainbows::CoolioThreadSpawn) # CoolioThreadPool is the new version of this, use that instead. # @@ -16,14 +17,4 @@ # # 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::RevThreadSpawn - include Rainbows::Rev::Core - - def init_worker_process(worker) # :nodoc: - super - master = Rainbows::Rev::Master.new(Queue.new).attach(Rev::Loop.default) - Rainbows::RevThreadSpawn::Client.const_set(:MASTER, master) - end -end -# :enddoc: -require 'rainbows/rev_thread_spawn/client' +module Rainbows::RevThreadSpawn; end |