From: jwang36 Date: Fri, 15 Sep 2006 09:35:46 +0000 (+0000) Subject: Added synchronized to getCommandSetting to solve multi-thread build issue X-Git-Tag: edk2-stable201903~24328 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=2f2c367ad87e3f1d00cf26835c39800395e42b1a Added synchronized to getCommandSetting to solve multi-thread build issue git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1546 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java b/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java index e8da51231f..e5e4d5e671 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java +++ b/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java @@ -726,7 +726,7 @@ public class GlobalData { return false; } - public static String getCommandSetting(String[] commandDescription, FpdModuleIdentification fpdModuleId) throws EdkException { + public synchronized static String getCommandSetting(String[] commandDescription, FpdModuleIdentification fpdModuleId) throws EdkException { ToolChainKey toolChainKey = new ToolChainKey(commandDescription); ToolChainMap toolChainConfig = toolsDef.getConfig(); String setting = null;