Add a thread pool.