| 751 | } |
| 752 | |
| 753 | Result<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 | |
| 759 | Result<std::shared_ptr<ThreadPool>> ThreadPool::MakeEternal(int threads) { |
| 760 | ARROW_ASSIGN_OR_RAISE(auto pool, Make(threads)); |
nothing calls this directly
no test coverage detected