diff options
author | Christian Biesinger <cbiesinger@google.com> | 2019-10-01 18:38:35 -0500 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-11-26 14:02:57 -0700 |
commit | a0b57563b1317e0000a67a7bed4c1712403682f3 (patch) | |
tree | 3a04ba4f878ec9d8dbfb03fd7a5fd345d8033fc9 /gdb/Makefile.in | |
parent | 3b3978bca2a204a772563c8e121e4a02be72e802 (diff) | |
download | gdb-a0b57563b1317e0000a67a7bed4c1712403682f3.zip gdb-a0b57563b1317e0000a67a7bed4c1712403682f3.tar.gz gdb-a0b57563b1317e0000a67a7bed4c1712403682f3.tar.bz2 |
Implement a thread pool
This adds a simple thread pool to gdb. In the end, this seemed
preferable to the approach taken in an earlier version of this series;
namely, starting threads in the parallel-foreach implementation. This
approach reduces the overhead of starting new threads, and also lets
the user control (in a subsequent patch) exactly how many worker
threads are running.
gdb/ChangeLog
2019-11-26 Christian Biesinger <cbiesinger@google.com>
Tom Tromey <tom@tromey.com>
* gdbsupport/thread-pool.h: New file.
* gdbsupport/thread-pool.c: New file.
* Makefile.in (COMMON_SFILES): Add thread-pool.c.
(HFILES_NO_SRCDIR): Add thread-pool.h.
Change-Id: I597bb642780cb9d578ca92373d2a638efb44fe52
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r-- | gdb/Makefile.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in index c487b10..b07b11e 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -995,6 +995,7 @@ COMMON_SFILES = \ gdbsupport/signals.c \ gdbsupport/signals-state-save-restore.c \ gdbsupport/tdesc.c \ + gdbsupport/thread-pool.c \ gdbsupport/xml-utils.c \ complaints.c \ completer.c \ @@ -1499,6 +1500,7 @@ HFILES_NO_SRCDIR = \ gdbsupport/signals-state-save-restore.h \ gdbsupport/symbol.h \ gdbsupport/tdesc.h \ + gdbsupport/thread-pool.h \ gdbsupport/version.h \ gdbsupport/x86-xstate.h \ gdbsupport/xml-utils.h \ |