commit | cbcef42e680ab7c999b70556d2278efcc56c0a5f | [log] [tgz] |
---|---|---|
author | Florian Hahn <flo@fhahn.com> | Tue Nov 23 10:06:08 2021 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Nov 23 02:29:35 2021 -0800 |
tree | ade6767a82b06a7a7bc2fdacda2da5fd48b036fa | |
parent | 4e3e1916dbea4ecd3b516defdf1d8af4be55bca8 [diff] |
[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 GitOrigin-RevId: a5fff58781f30ff3fd7a3f56948552cf7b8842bb
See https://mlir.llvm.org/ for more information.