about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-07 18:06:54 -0800
committerEric Wong <normalperson@yhbt.net>2011-01-07 18:08:25 -0800
commit37ec9ef3272931f42b4b0bb3f04a3855a8702a05 (patch)
tree9b491e4335e2f490a4b502326ca86fbba76034c6
parentf6d448bc21c3bde3ab39b55664722b40f5801c20 (diff)
We don't want that loaded in the parent process since
we want config reloadability.
-rw-r--r--lib/rainbows/coolio_thread_pool.rb2
-rw-r--r--lib/rainbows/coolio_thread_spawn.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/rainbows/coolio_thread_pool.rb b/lib/rainbows/coolio_thread_pool.rb
index d0a359e..3d32bfb 100644
--- a/lib/rainbows/coolio_thread_pool.rb
+++ b/lib/rainbows/coolio_thread_pool.rb
@@ -16,6 +16,7 @@
 # users are NOT advised to use this due to high CPU usage.
 module Rainbows::CoolioThreadPool
   # :stopdoc:
+  autoload :Client, 'rainbows/coolio_thread_pool/client'
   DEFAULTS = {
     :pool_size => 20, # same default size as ThreadPool (w/o Coolio)
   }
@@ -53,5 +54,4 @@ module Rainbows::CoolioThreadPool
   end
 end
 # :enddoc:
-require 'rainbows/coolio_thread_pool/client'
 require 'rainbows/coolio_thread_pool/watcher'
diff --git a/lib/rainbows/coolio_thread_spawn.rb b/lib/rainbows/coolio_thread_spawn.rb
index 7ea3bda..a26c970 100644
--- a/lib/rainbows/coolio_thread_spawn.rb
+++ b/lib/rainbows/coolio_thread_spawn.rb
@@ -15,6 +15,7 @@
 # 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
@@ -24,4 +25,3 @@ module Rainbows::CoolioThreadSpawn
   end
 end
 # :enddoc:
-require 'rainbows/coolio_thread_spawn/client'