class Rake::ThreadPool
def initialize(thread_count)
Creates a ThreadPool object. The +thread_count+ parameter is the size
def initialize(thread_count) require "set" @max_active_threads = [thread_count, 0].max @threads = Set.new @threads_mon = Monitor.new @queue = Queue.new @join_cond = @threads_mon.new_cond @history_start_time = nil @history = [] @history_mon = Monitor.new @total_threads_in_play = 0 end