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

Method MakeEternal

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

Source from the content-addressed store, hash-verified

764}
765
766Result<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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected