summaryrefslogtreecommitdiff
path: root/Tools/Source/GenBuild
diff options
context:
space:
mode:
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-15 06:18:55 +0000
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-15 06:18:55 +0000
commit1744b047bbf3c559356dd7e6c66b17ddd382eb6b (patch)
tree9a8573d7b50fa66f1c8f00ba296da70643de7547 /Tools/Source/GenBuild
parent34913f248c5297dd8976c095763b7e44ed645d92 (diff)
downloadedk2-platforms-1744b047bbf3c559356dd7e6c66b17ddd382eb6b.tar.xz
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
Diffstat (limited to 'Tools/Source/GenBuild')
-rw-r--r--Tools/Source/GenBuild/org/tianocore/build/global/GlobalData.java2
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 fb283fd4c6..e8da51231f 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) {