]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/platform/ui/FpdFileContents.java
Create more threads to synchronize pcd data for FrameworkModules in a platform.
[mirror_edk2.git] / Tools / Java / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / platform / ui / FpdFileContents.java
index 4bca7fe22d047d22937b183565d3129d466028f9..c5f854a7e881b4f6c7fc1f2cf44c6b3696cdcfd8 100644 (file)
@@ -494,7 +494,7 @@ public class FpdFileContents {
         return dataModified;\r
     }\r
     \r
-    private void maintainDynPcdMap(String pcdKey, String moduleInfo) {\r
+    private synchronized void maintainDynPcdMap(String pcdKey, String moduleInfo) {\r
         \r
         ArrayList<String> al = dynPcdMap.get(pcdKey);\r
         if (al == null) {\r
@@ -1318,7 +1318,7 @@ public class FpdFileContents {
         return choosedType;\r
     }\r
     \r
-    private void genPcdData (String cName, Object token, String tsGuid, String itemType, String dataType, String defaultVal, \r
+    private synchronized void genPcdData (String cName, Object token, String tsGuid, String itemType, String dataType, String defaultVal, \r
                              ModuleSADocument.ModuleSA moduleSa, PcdDeclarationsDocument.PcdDeclarations.PcdEntry spdPcd) \r
     throws PcdItemTypeConflictException, PcdValueMalFormed{\r
         if (moduleSa.getPcdBuildDefinition() == null){\r