diff options
author | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-15 06:18:55 +0000 |
---|---|---|
committer | jwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-15 06:18:55 +0000 |
commit | 1744b047bbf3c559356dd7e6c66b17ddd382eb6b (patch) | |
tree | 9a8573d7b50fa66f1c8f00ba296da70643de7547 | |
parent | 34913f248c5297dd8976c095763b7e44ed645d92 (diff) | |
download | edk2-1744b047bbf3c559356dd7e6c66b17ddd382eb6b.zip edk2-1744b047bbf3c559356dd7e6c66b17ddd382eb6b.tar.gz edk2-1744b047bbf3c559356dd7e6c66b17ddd382eb6b.tar.bz2 |
Added "synchronized" to getToolChainInfo() to solve synchronization issue.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1543 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java b/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java index fb283fd..e8da512 100644 --- a/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java +++ b/Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java @@ -681,7 +681,7 @@ public class GlobalData { ///
/// Tool Chain Related, try to refine and put some logic process to ToolChainFactory
///
- public static ToolChainInfo getToolChainInfo() {
+ public synchronized static ToolChainInfo getToolChainInfo() {
if (toolChainInfo == null) {
toolChainInfo = toolsDef.getConfigInfo().intersection(toolChainEnvInfo);
if (toolChainPlatformInfo != null) {
|