MCPcopy Create free account
hub / github.com/apache/arrow / Make

Method Make

cpp/src/arrow/util/thread_pool.cc:760–764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

758}
759
760Result<std::shared_ptr<ThreadPool>> ThreadPool::Make(int threads) {
761 auto pool = std::shared_ptr<ThreadPool>(new ThreadPool());
762 RETURN_NOT_OK(pool->SetCapacity(threads));
763 return pool;
764}
765
766Result<std::shared_ptr<ThreadPool>> ThreadPool::MakeEternal(int threads) {
767 ARROW_ASSIGN_OR_RAISE(auto pool, Make(threads));

Callers

nothing calls this directly

Calls 1

SetCapacityMethod · 0.80

Tested by

no test coverage detected