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

Method Make

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

Source from the content-addressed store, hash-verified

751}
752
753Result<std::shared_ptr<ThreadPool>> ThreadPool::Make(int threads) {
754 auto pool = std::shared_ptr<ThreadPool>(new ThreadPool());
755 RETURN_NOT_OK(pool->SetCapacity(threads));
756 return pool;
757}
758
759Result<std::shared_ptr<ThreadPool>> ThreadPool::MakeEternal(int threads) {
760 ARROW_ASSIGN_OR_RAISE(auto pool, Make(threads));

Callers

nothing calls this directly

Calls 1

SetCapacityMethod · 0.80

Tested by

no test coverage detected