From: Tom de Vries <tdevries@suse.de>
To: dwz@sourceware.org, jakub@redhat.com, mark@klomp.org
Subject: [committed] Use vars to name parallel parts in dwz_files_1
Date: Tue, 30 Mar 2021 09:43:09 +0200 [thread overview]
Message-ID: <20210330074308.GA11240@delia.home> (raw)
Hi,
Use variables initial_parallel_p and finalize_multifile_parallel_p to name
parallel parts in dwz_files_1.
Committed to trunk.
Thanks,
- Tom
Use vars to name parallel parts in dwz_files_1
2021-03-29 Tom de Vries <tdevries@suse.de>
* dwz.c (dwz_files_1): Add variables initial_parallel_p and
finalize_multifile_parallel_p.
---
dwz.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/dwz.c b/dwz.c
index 3ad9c9e..037cb75 100644
--- a/dwz.c
+++ b/dwz.c
@@ -16537,8 +16537,8 @@ dwz_files_1 (int nr_files, char *files[], bool hardlink,
workset[workset_size] = i;
workset_size++;
}
-
- if (max_forks > 1 && multifile == NULL)
+ bool initial_parallel_p = max_forks > 1 && multifile == NULL;
+ if (initial_parallel_p)
{
pid_t pids[nr_files];
int nr_forks = 0;
@@ -16641,7 +16641,8 @@ dwz_files_1 (int nr_files, char *files[], bool hardlink,
workset_size++;
}
- if (max_forks > 1)
+ bool finalize_multifile_parallel_p = max_forks > 1;
+ if (finalize_multifile_parallel_p)
{
pid_t pids[nr_files];
int nr_forks = 0;
reply other threads:[~2021-03-30 7:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210330074308.GA11240@delia.home \
--to=tdevries@suse.de \
--cc=dwz@sourceware.org \
--cc=jakub@redhat.com \
--cc=mark@klomp.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).