| 693 | } |
| 694 | |
| 695 | Result<std::shared_ptr<ThreadPool>> ThreadPool::Make(int threads) { |
| 696 | auto pool = std::shared_ptr<ThreadPool>(new ThreadPool()); |
| 697 | RETURN_NOT_OK(pool->SetCapacity(threads)); |
| 698 | return pool; |
| 699 | } |
| 700 | |
| 701 | Result<std::shared_ptr<ThreadPool>> ThreadPool::MakeEternal(int threads) { |
| 702 | ARROW_ASSIGN_OR_RAISE(auto pool, Make(threads)); |
nothing calls this directly
no test coverage detected