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
This commit is contained in:
jwang36 2006-09-15 06:18:55 +00:00
parent 34913f248c
commit 1744b047bb
1 changed files with 1 additions and 1 deletions

View File

@ -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) {