Files
edk2/BaseTools/Source/Python/AutoGen
Feng, Bob C bfe36cb4ef BaseTools: Improve the method of checking queue empty
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2807

The Queue.empty() method is not reliable in the multiple
process runtime environment. This patch uses a new method
to check if all modules are processed and workers need
to be stopped. That is to add a None item at the bottom
of the queue. Worker check if it gets that None item to
know if all the module is processed.

Signed-off-by: Bob Feng <[email protected]>
Cc: Liming Gao <[email protected]>
Cc: Yuwei Chen <[email protected]>
Cc: Lucy Yan <[email protected]>

Reviewed-by: Liming Gao <[email protected]>
2020-08-07 01:44:36 +00:00
..
2019-08-09 23:15:52 +08:00