Searched refs:max_workers (Results 1 – 2 of 2) sorted by relevance
215 void ThreadPool::SetMaxActiveWorkers(size_t max_workers) { in SetMaxActiveWorkers() argument217 CHECK_LE(max_workers, GetThreadCount()); in SetMaxActiveWorkers()218 max_active_workers_ = max_workers; in SetMaxActiveWorkers()
526 with concurrent.futures.ThreadPoolExecutor(max_workers=n_thread) as executor: