Skip to content

Commit

Permalink
revert a change
Browse files Browse the repository at this point in the history
  • Loading branch information
mapleFU committed Nov 22, 2024
1 parent 2bbe726 commit b4e4cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/util/thread_pool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -674,10 +674,10 @@ Result<std::shared_ptr<ThreadPool>> ThreadPool::Make(int threads) {

Result<std::shared_ptr<ThreadPool>> 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;
Expand Down

0 comments on commit b4e4cf0

Please sign in to comment.