aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2021-11-23 10:06:08 +0000
committerFlorian Hahn <flo@fhahn.com>2021-11-23 10:06:08 +0000
commita5fff58781f30ff3fd7a3f56948552cf7b8842bb (patch)
treed9e163c080a01fe7a453c0a8a8318178ceddbe1c /clang/lib/Frontend/InitPreprocessor.cpp
parentc7cc70c8f87789ba04a8610162de4ad135d99e16 (diff)
downloadllvm-a5fff58781f30ff3fd7a3f56948552cf7b8842bb.zip
llvm-a5fff58781f30ff3fd7a3f56948552cf7b8842bb.tar.gz
llvm-a5fff58781f30ff3fd7a3f56948552cf7b8842bb.tar.bz2
[ThreadPool] Do not return shared futures.
The only users of returned futures from ThreadPool is llvm-reduce after D113857. There should be no cases where multiple threads wait on the same future, so there should be no need to return std::shared_future<>. Instead return plain std::future<>. If users need to share a future between multiple threads, they can share the futures themselves. Reviewed By: Meinersbur, mehdi_amini Differential Revision: https://reviews.llvm.org/D114363
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions