From: "Liming Gao" <liming.gao@intel.com>
To: "Feng, Bob C" <bob.c.feng@intel.com>,
"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Shi, Steven" <steven.shi@intel.com>
Subject: Re: [Patch 1/1] BaseTools: Fixed build clean regression issue
Date: Mon, 9 Sep 2019 03:41:40 +0000 [thread overview]
Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E4F46C4@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <20190909011427.30808-1-bob.c.feng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
> -----Original Message-----
> From: Feng, Bob C
> Sent: Monday, September 9, 2019 9:14 AM
> To: devel@edk2.groups.io
> Cc: Gao, Liming <liming.gao@intel.com>; Shi, Steven <steven.shi@intel.com>; Feng, Bob C <bob.c.feng@intel.com>
> Subject: [Patch 1/1] BaseTools: Fixed build clean regression issue
>
> BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2166
>
> file_lock and cache_lock are used as global data,
> so move file_lock and cache_lock initialization in Build
> object __init__ function.
>
> Cc: Liming Gao <liming.gao@intel.com>
> Cc: Steven Shi <steven.shi@intel.com>
> Signed-off-by: Bob Feng <bob.c.feng@intel.com>
> ---
> BaseTools/Source/Python/build/build.py | 8 +++-----
> 1 file changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py
> index 0406ac314b65..cf82c29b7eb9 100755
> --- a/BaseTools/Source/Python/build/build.py
> +++ b/BaseTools/Source/Python/build/build.py
> @@ -810,27 +810,25 @@ class Build():
> self.AutoGenMgr = None
> EdkLogger.info("")
> os.chdir(self.WorkspaceDir)
> GlobalData.gCacheIR = Manager().dict()
> self.log_q = log_q
> + GlobalData.file_lock = mp.Lock()
> + GlobalData.cache_lock = mp.Lock()
> def StartAutoGen(self,mqueue, DataPipe,SkipAutoGen,PcdMaList,share_data):
> try:
> if SkipAutoGen:
> return True,0
> feedback_q = mp.Queue()
> - file_lock = mp.Lock()
> error_event = mp.Event()
> - GlobalData.file_lock = file_lock
> - cache_lock = mp.Lock()
> - GlobalData.cache_lock = cache_lock
> FfsCmd = DataPipe.Get("FfsCommand")
> if FfsCmd is None:
> FfsCmd = {}
> GlobalData.FfsCmd = FfsCmd
> GlobalData.libConstPcd = DataPipe.Get("LibConstPcd")
> GlobalData.Refes = DataPipe.Get("REFS")
> - auto_workers =
> [AutoGenWorkerInProcess(mqueue,DataPipe.dump_file,feedback_q,file_lock,cache_lock,share_data,self.log_q,error_event) for _ in
> range(self.ThreadNumber)]
> + auto_workers =
> [AutoGenWorkerInProcess(mqueue,DataPipe.dump_file,feedback_q,GlobalData.file_lock,GlobalData.cache_lock,share_data,self.log_q,error
> _event) for _ in range(self.ThreadNumber)]
> self.AutoGenMgr = AutoGenManager(auto_workers,feedback_q,error_event)
> self.AutoGenMgr.start()
> for w in auto_workers:
> w.start()
> if PcdMaList is not None:
> --
> 2.20.1.windows.1
prev parent reply other threads:[~2019-09-09 3:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-09 1:14 [Patch 1/1] BaseTools: Fixed build clean regression issue Bob Feng
2019-09-09 3:41 ` Liming Gao [this message]
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-list 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=4A89E2EF3DFEDB4C8BFDE51014F606A14E4F46C4@SHSMSX104.ccr.corp.intel.com \
--to=devel@edk2.groups.io \
/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