Searched refs:max_workers (Results 1 – 5 of 5) 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()
61 self.executor = concurrent.futures.ThreadPoolExecutor(max_workers=1)
108 with futures.ThreadPoolExecutor(max_workers=10) as pool:
249 with concurrent.futures.ThreadPoolExecutor(max_workers=args.jobs) as pool:
584 with concurrent.futures.ThreadPoolExecutor(max_workers=n_thread) as executor: