diff options
author | Florian Hahn <flo@fhahn.com> | 2021-11-23 10:06:08 +0000 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2021-11-23 10:06:08 +0000 |
commit | a5fff58781f30ff3fd7a3f56948552cf7b8842bb (patch) | |
tree | d9e163c080a01fe7a453c0a8a8318178ceddbe1c /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | c7cc70c8f87789ba04a8610162de4ad135d99e16 (diff) | |
download | llvm-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