New threadpool class.