Add batching parameter to parallel_for_each
authorTom Tromey <tom@tromey.com>
Sun, 23 May 2021 15:04:27 +0000 (09:04 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 12 Apr 2022 15:31:16 +0000 (09:31 -0600)
commit82d734f7a3b6f08813a9ad6272aa026779c88975
tree26aea3dcb439f9c8a884535c60eb452ffcebc423
parentc0892a1d5dc29eb849e9aed0fb7c7dade6dffb23
Add batching parameter to parallel_for_each

parallel_for_each currently requires each thread to process at least
10 elements.  However, when indexing, it's fine for a thread to handle
just a single CU.  This patch parameterizes this, and updates the one
user.
gdb/minsyms.c
gdb/unittests/parallel-for-selftests.c
gdbsupport/parallel-for.h