diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-05-09 00:17:06 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-05-09 00:17:06 +0000 |
commit | 725adcc6986bc2658d92ea3ebebe61d2b83060ad (patch) | |
tree | dcaa850fc3a329e98dd420083105421cabfc5295 /lib/rainbows/coolio_thread_pool.rb | |
parent | 3c1649226d2371ce09d14f3fcce18fec0af1ba02 (diff) | |
download | rainbows-725adcc6986bc2658d92ea3ebebe61d2b83060ad.tar.gz |
coolio_thread_pool, neverblock both use it, and xepoll_thread_pool will support it next, too.
Diffstat (limited to 'lib/rainbows/coolio_thread_pool.rb')
-rw-r--r-- | lib/rainbows/coolio_thread_pool.rb | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/rainbows/coolio_thread_pool.rb b/lib/rainbows/coolio_thread_pool.rb index 3d32bfb..378e64d 100644 --- a/lib/rainbows/coolio_thread_pool.rb +++ b/lib/rainbows/coolio_thread_pool.rb @@ -17,17 +17,8 @@ module Rainbows::CoolioThreadPool # :stopdoc: autoload :Client, 'rainbows/coolio_thread_pool/client' - DEFAULTS = { - :pool_size => 20, # same default size as ThreadPool (w/o Coolio) - } + extend Rainbows::PoolSize #:startdoc: - - def self.setup # :nodoc: - o = Rainbows::O - DEFAULTS.each { |k,v| o[k] ||= v } - Integer === o[:pool_size] && o[:pool_size] > 0 or - raise ArgumentError, "pool_size must a be an Integer > 0" - end include Rainbows::Coolio::Core def init_worker_threads(master, queue) # :nodoc: |