Return vector of results from parallel_for_each
authorTom Tromey <tom@tromey.com>
Sun, 13 Jun 2021 18:46:28 +0000 (12:46 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 12 Apr 2022 15:31:16 +0000 (09:31 -0600)
commitf4565e4c99e768d3bcf2998979528569a65d8417
tree51d6e54a3ba0a495cdedd2977d30a748920ea3cd
parent82d734f7a3b6f08813a9ad6272aa026779c88975
Return vector of results from parallel_for_each

This changes gdb::parallel_for_each to return a vector of the results.
However, if the passed-in function returns void, the return type
remains 'void'.  This functionality is used later, to parallelize the
new indexer.
gdbsupport/parallel-for.h
gdbsupport/thread-pool.cc
gdbsupport/thread-pool.h