| 764 | } |
| 765 | |
| 766 | Result<std::shared_ptr<ThreadPool>> ThreadPool::MakeEternal(int threads) { |
| 767 | ARROW_ASSIGN_OR_RAISE(auto pool, Make(threads)); |
| 768 | // On Windows, the ThreadPool destructor may be called after non-main threads |
| 769 | // have been killed by the OS, and hang in a condition variable. |
| 770 | // On Unix, we want to avoid leak reports by Valgrind. |
| 771 | # ifdef _WIN32 |
| 772 | pool->shutdown_on_destroy_ = false; |
| 773 | # endif |
| 774 | return pool; |
| 775 | } |
| 776 | |
| 777 | // ---------------------------------------------------------------------- |
| 778 | // Global thread pool |
nothing calls this directly
no outgoing calls
no test coverage detected