Recommit [ThreadPool] Support returning futures with results.
authorFlorian Hahn <flo@fhahn.com>
Thu, 25 Nov 2021 20:07:53 +0000 (20:07 +0000)
committerFlorian Hahn <flo@fhahn.com>
Thu, 25 Nov 2021 20:07:53 +0000 (20:07 +0000)
commit8cb1af73c6171be009bf06b4a0d569d3882923ad
tree02bb8850dc59f3ded558d35d3fccd36a5f2a85b0
parent813d486cbc99836ea4e75996e2667cb38f7113a8
Recommit [ThreadPool] Support returning futures with results.

This reverts commit 71a7c55f0f021b04b9a7303d0cd391b9161cf303.

The revert broken building llvm-reduce and it is not clear it fixes an
issue with LLVM_ENABLE_THREADS=OFF.

See discussion in https://reviews.llvm.org/D114183 for more details.
llvm/include/llvm/Support/ThreadPool.h
llvm/lib/Support/ThreadPool.cpp
llvm/unittests/Support/ThreadPool.cpp