]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/build/build.py
BaseTools: Add LogAgent to support multiple process Autogen
authorFeng, Bob C <bob.c.feng@intel.com>
Wed, 31 Jul 2019 05:31:15 +0000 (13:31 +0800)
committerFeng, Bob C <bob.c.feng@intel.com>
Fri, 9 Aug 2019 15:15:54 +0000 (23:15 +0800)
commit636ed13a7f9339aea7fdb74de24be1703e9d482c
tree6f445061028eedeb4293c7915e813357d9508451
parent3285fbda88238596b2b7e886e67e455f0626bb1f
BaseTools: Add LogAgent to support multiple process Autogen

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1875

AutoGen processes race the logfile. To resolve this issue,
this patch create a LogAgent thread in main process to write
the log content to console or file, Other process will send
the log content to the LogAgent.

Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Acked-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/Python/AutoGen/AutoGenWorker.py
BaseTools/Source/Python/AutoGen/DataPipe.py
BaseTools/Source/Python/Common/EdkLogger.py
BaseTools/Source/Python/build/build.py