class ActiveSupport::Testing::Parallelization

:nodoc:

def self.after_fork_hook(&blk)

def self.after_fork_hook(&blk)
  @@after_fork_hooks << blk
end

def self.run_cleanup_hook(&blk)

def self.run_cleanup_hook(&blk)
  @@run_cleanup_hooks << blk
end

def <<(work)

def <<(work)
  @queue_server << work
end

def initialize(worker_count)

def initialize(worker_count)
  @worker_count = worker_count
  @queue_server = Server.new
  @worker_pool = []
  @url = DRb.start_service("drbunix:", @queue_server).uri
end

def shutdown

def shutdown
  @queue_server.shutdown
  @worker_pool.each { |pid| Process.waitpid pid }
end

def size

def size
  @worker_count
end

def start

def start
  @worker_pool = @worker_count.times.map do |worker|
    Worker.new(worker, @url).start
  end
end