lib/celluloid/group/pool.rb in celluloid-0.18.0.pre vs lib/celluloid/group/pool.rb in celluloid-0.18.0.pre2
- old
+ new
@@ -1,7 +1,5 @@
-require "thread"
-
module Celluloid
class Group
class Pool < Group
# You do not want to use this. Truly, you do not. There is no scenario when you will.
# But. If you somehow do.. `Celluloid.group_class = Celluloid::Group::Pool` and weep.
@@ -10,10 +8,10 @@
def initialize
super
@mutex = Mutex.new
@idle_threads = []
- @group = []
+ @group = []
@busy_size = 0
@idle_size = 0
# TODO: should really adjust this based on usage
@max_idle = 16