From b4e4cf05ded9efa7038556c6ae412da654eef49e Mon Sep 17 00:00:00 2001 From: mwish Date: Fri, 22 Nov 2024 21:29:10 +0800 Subject: [PATCH] revert a change --- cpp/src/arrow/util/thread_pool.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/arrow/util/thread_pool.cc b/cpp/src/arrow/util/thread_pool.cc index aaf95a2833469..8aa6d548893de 100644 --- a/cpp/src/arrow/util/thread_pool.cc +++ b/cpp/src/arrow/util/thread_pool.cc @@ -674,10 +674,10 @@ Result> ThreadPool::Make(int threads) { Result> ThreadPool::MakeEternal(int threads) { ARROW_ASSIGN_OR_RAISE(auto pool, Make(threads)); -# ifdef _WIN32 // On Windows, the ThreadPool destructor may be called after non-main threads // have been killed by the OS, and hang in a condition variable. // On Unix, we want to avoid leak reports by Valgrind. +# ifdef _WIN32 pool->shutdown_on_destroy_ = false; # endif return pool;