]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/CompressSection.java
Adding new Logger instead of Ant's.
[mirror_edk2.git] / Tools / Source / FrameworkTasks / org / tianocore / framework / tasks / CompressSection.java
index 84f9176e786f7a120b9eae62eff8bb45a3fbe044..46a0ec6677d686ba425b4d22e1274f831f4c6e93 100644 (file)
@@ -42,6 +42,8 @@ public class CompressSection implements Section, FfsTypes{
     //\r
     List<Object>   SectList     = new ArrayList<Object>();\r
 \r
+    public static Object semaphore = new Object();\r
+    \r
     /**\r
       toBuffer\r
       \r
@@ -85,6 +87,8 @@ public class CompressSection implements Section, FfsTypes{
             }\r
             Do.close();    \r
             \r
+            \r
+            synchronized (semaphore) {\r
             //\r
             //  Call compress\r
             //\r
@@ -144,6 +148,7 @@ public class CompressSection implements Section, FfsTypes{
             //\r
             //di.close();\r
             //compressOut.delete();\r
+            }\r
                 \r
         }\r
         catch (Exception e){\r