mirror of
https://github.com/utmapp/edk2.git
synced 2026-12-01 14:00:40 -10:00
BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=2079 The Basetool CopyFileOnChange() and SaveFileOnChange() functions might raise the IOError occasionally when build in Windows with multi-process and build cache enabled. The CopyFileOnChange() and SaveFileOnChange() might be invoked in multiple sub-processes simultaneously, and this patch adds global locks to sync these functions invoking which can harden their reliability. Cc: Liming Gao <[email protected]> Cc: Bob Feng <[email protected]> Signed-off-by: Steven Shi <[email protected]> Reviewed-by: Bob Feng <[email protected]>