]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdbsupport: make gdb::parallel_for_each's n parameter a template parameter
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 5 May 2025 20:15:26 +0000 (16:15 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 13 Jun 2025 18:38:57 +0000 (14:38 -0400)
commite2f20b221ab6b7af24ab29b84d55b4772952c3ca
treec7999ef26d53dca6e96550a6e392f6c3c00a052c
parent48b60fbfbc0b079263db0161ea1ae3172d2b4a26
gdbsupport: make gdb::parallel_for_each's n parameter a template parameter

This value will likely never change at runtime, so we might as well make
it a template parameter.  This has the "advantage" of being able to
remove the unnecessary param from gdb::sequential_for_each.

Change-Id: Ia172ab8e08964e30d4e3378a95ccfa782abce674
Approved-By: Tom Tromey <tom@tromey.com>
gdb/minsyms.c
gdb/unittests/parallel-for-selftests.c
gdbsupport/parallel-for.h