Searched refs:max_workers (Results 1 – 3 of 3) sorted by relevance
225 void ThreadPool::SetMaxActiveWorkers(size_t max_workers) { in SetMaxActiveWorkers() argument227 CHECK_LE(max_workers, GetThreadCount()); in SetMaxActiveWorkers()228 max_active_workers_ = max_workers; in SetMaxActiveWorkers()
368 with concurrent.futures.ThreadPoolExecutor(max_workers=args.jobs) as pool:
592 with concurrent.futures.ThreadPoolExecutor(max_workers=n_thread) as executor: