HomePhabricator

Recommit [ThreadPool] Support returning futures with results.

Authored by fhahn on Thu, Nov 25, 12:07 PM.

Description

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.